MAYBE 182.304 H-Termination proof of /home/matraf/haskell/eval_FullyBlown_Fast/empty.hs
H-Termination of the given Haskell-Program with start terms could not be shown:



HASKELL
  ↳ LR

mainModule Main
  ((rangeSize :: Ix a => (a,a ->  Int) :: Ix a => (a,a ->  Int)

module Main where
  import qualified Prelude



Lambda Reductions:
The following Lambda expression
\z→if y >= z && z >= x then z : [] else []

is transformed to
range0 y x z = if y >= z && z >= x then z : [] else []

The following Lambda expression
\s→if y > s then 1 else 0

is transformed to
index0 y s = if y > s then 1 else 0

The following Lambda expression
\lv1
case lv1 of
 z2 → (z0,z1,z2: []
 _ → []

is transformed to
range1 z0 z1 lv1 = 
case lv1 of
 z2 → (z0,z1,z2: []
 _ → []

The following Lambda expression
\lv2
case lv2 of
 z1 → concatMap (range1 z0 z1) (range (x2,y2))
 _ → []

is transformed to
range2 z0 x2 y2 lv2 = 
case lv2 of
 z1 → concatMap (range1 z0 z1) (range (x2,y2))
 _ → []

The following Lambda expression
\lv3
case lv3 of
 z0 → concatMap (range2 z0 x2 y2) (range (x1,y1))
 _ → []

is transformed to
range3 x2 y2 x1 y1 lv3 = 
case lv3 of
 z0 → concatMap (range2 z0 x2 y2) (range (x1,y1))
 _ → []

The following Lambda expression
\s→if y > s then 1 else 0

is transformed to
index1 y s = if y > s then 1 else 0

The following Lambda expression
\z→if y >= z && z >= x then z : [] else []

is transformed to
range4 y x z = if y >= z && z >= x then z : [] else []

The following Lambda expression
\lv1
case lv1 of
 z1 → (z0,z1: []
 _ → []

is transformed to
range5 z0 lv1 = 
case lv1 of
 z1 → (z0,z1: []
 _ → []

The following Lambda expression
\lv2
case lv2 of
 z0 → concatMap (range5 z0) (range (x1,y1))
 _ → []

is transformed to
range6 x1 y1 lv2 = 
case lv2 of
 z0 → concatMap (range5 z0) (range (x1,y1))
 _ → []



↳ HASKELL
  ↳ LR
HASKELL
      ↳ CR

mainModule Main
  ((rangeSize :: Ix a => (a,a ->  Int) :: Ix a => (a,a ->  Int)

module Main where
  import qualified Prelude



Case Reductions:
The following Case expression
case lv1 of
 z1 → (z0,z1: []
 _ → []

is transformed to
range50 z0 z1 = (z0,z1: []
range50 z0 _ = []

The following Case expression
case lv2 of
 z1 → concatMap (range1 z0 z1) (range (x2,y2))
 _ → []

is transformed to
range20 z0 x2 y2 z1 = concatMap (range1 z0 z1) (range (x2,y2))
range20 z0 x2 y2 _ = []

The following Case expression
case lv2 of
 z0 → concatMap (range5 z0) (range (x1,y1))
 _ → []

is transformed to
range60 x1 y1 z0 = concatMap (range5 z0) (range (x1,y1))
range60 x1 y1 _ = []

The following Case expression
case lv3 of
 z0 → concatMap (range2 z0 x2 y2) (range (x1,y1))
 _ → []

is transformed to
range30 x2 y2 x1 y1 z0 = concatMap (range2 z0 x2 y2) (range (x1,y1))
range30 x2 y2 x1 y1 _ = []

The following Case expression
case lv1 of
 z2 → (z0,z1,z2: []
 _ → []

is transformed to
range10 z0 z1 z2 = (z0,z1,z2: []
range10 z0 z1 _ = []



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
HASKELL
          ↳ IFR

mainModule Main
  ((rangeSize :: Ix a => (a,a ->  Int) :: Ix a => (a,a ->  Int)

module Main where
  import qualified Prelude



If Reductions:
The following If expression
if y >= z && z >= x then z : [] else []

is transformed to
range00 z True = z : []
range00 z False = []

The following If expression
if y >= z && z >= x then z : [] else []

is transformed to
range40 z True = z : []
range40 z False = []

The following If expression
if y > s then 1 else 0

is transformed to
index00 True = 1
index00 False = 0

The following If expression
if y > s then 1 else 0

is transformed to
index10 True = 1
index10 False = 0

The following If expression
if y >= z && z >= x then sum (map (index0 y) (range (x,y))) else error []

is transformed to
index2 y x True = sum (map (index0 y) (range (x,y)))
index2 y x False = error []

The following If expression
if y >= z && z >= x then sum (map (index1 y) (range (x,y))) else error []

is transformed to
index3 y x True = sum (map (index1 y) (range (x,y)))
index3 y x False = error []



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
HASKELL
              ↳ BR

mainModule Main
  ((rangeSize :: Ix a => (a,a ->  Int) :: Ix a => (a,a ->  Int)

module Main where
  import qualified Prelude



Replaced joker patterns by fresh variables and removed binding patterns.
Binding Reductions:
The bind variable of the following binding Pattern
r@(vv,vw)

is replaced by the following term
(vv,vw)

The bind variable of the following binding Pattern
b@(wz,xu)

is replaced by the following term
(wz,xu)

The bind variable of the following binding Pattern
b@(xv,xw)

is replaced by the following term
(xv,xw)

The bind variable of the following binding Pattern
b@(xx,xy)

is replaced by the following term
(xx,xy)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
HASKELL
                  ↳ COR

mainModule Main
  ((rangeSize :: Ix a => (a,a ->  Int) :: Ix a => (a,a ->  Int)

module Main where
  import qualified Prelude



Cond Reductions:
The following Function with conditions
compare x y
 | x == y
 = EQ
 | x <= y
 = LT
 | otherwise
 = GT

is transformed to
compare x y = compare3 x y

compare1 x y True = LT
compare1 x y False = compare0 x y otherwise

compare0 x y True = GT

compare2 x y True = EQ
compare2 x y False = compare1 x y (x <= y)

compare3 x y = compare2 x y (x == y)

The following Function with conditions
rangeSize (vv,vw)
 | null (range (vv,vw))
 = 0
 | otherwise
 = index (vv,vwvw + 1

is transformed to
rangeSize (vv,vw) = rangeSize2 (vv,vw)

rangeSize0 vv vw True = index (vv,vwvw + 1

rangeSize1 vv vw True = 0
rangeSize1 vv vw False = rangeSize0 vv vw otherwise

rangeSize2 (vv,vw) = rangeSize1 vv vw (null (range (vv,vw)))

The following Function with conditions
undefined 
 | False
 = undefined

is transformed to
undefined  = undefined1

undefined0 True = undefined

undefined1  = undefined0 False

The following Function with conditions
takeWhile p [] = []
takeWhile p (x : xs)
 | p x
 = x : takeWhile p xs
 | otherwise
 = []

is transformed to
takeWhile p [] = takeWhile3 p []
takeWhile p (x : xs) = takeWhile2 p (x : xs)

takeWhile0 p x xs True = []

takeWhile1 p x xs True = x : takeWhile p xs
takeWhile1 p x xs False = takeWhile0 p x xs otherwise

takeWhile2 p (x : xs) = takeWhile1 p x xs (p x)

takeWhile3 p [] = []
takeWhile3 yx yy = takeWhile2 yx yy

The following Function with conditions
index (wz,xui
 | inRange (wz,xui
 = fromInteger (i - wz)
 | otherwise
 = error []

is transformed to
index (wz,xui = index6 (wz,xui

index5 wz xu i True = fromInteger (i - wz)
index5 wz xu i False = index4 wz xu i otherwise

index4 wz xu i True = error []

index6 (wz,xui = index5 wz xu i (inRange (wz,xui)

The following Function with conditions
index (xv,xwci
 | inRange (xv,xwci
 = fromEnum ci - fromEnum xv
 | otherwise
 = error []

is transformed to
index (xv,xwci = index9 (xv,xwci

index7 xv xw ci True = error []

index8 xv xw ci True = fromEnum ci - fromEnum xv
index8 xv xw ci False = index7 xv xw ci otherwise

index9 (xv,xwci = index8 xv xw ci (inRange (xv,xwci)

The following Function with conditions
index (xx,xyi
 | inRange (xx,xyi
 = i - xx
 | otherwise
 = error []

is transformed to
index (xx,xyi = index13 (xx,xyi

index12 xx xy i True = i - xx
index12 xx xy i False = index11 xx xy i otherwise

index11 xx xy i True = error []

index13 (xx,xyi = index12 xx xy i (inRange (xx,xyi)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
HASKELL
                      ↳ LetRed

mainModule Main
  ((rangeSize :: Ix a => (a,a ->  Int) :: Ix a => (a,a ->  Int)

module Main where
  import qualified Prelude



Let/Where Reductions:
The bindings of the following Let/Where expression
fromEnum c <= i && i <= fromEnum c'
where 
i  = fromEnum ci

are unpacked to the following functions on top level
inRangeI zw = fromEnum zw



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
HASKELL
                          ↳ NumRed

mainModule Main
  ((rangeSize :: Ix a => (a,a ->  Int) :: Ix a => (a,a ->  Int)

module Main where
  import qualified Prelude



Num Reduction: All numbers are transformed to thier corresponding representation with Pos, Neg, Succ and Zero.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
HASKELL
                              ↳ Narrow
                              ↳ Narrow

mainModule Main
  (rangeSize :: Ix a => (a,a ->  Int)

module Main where
  import qualified Prelude



Haskell To QDPs


↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_map(:(zx300, zx301)) → new_map(zx301)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_psPs(:(zx1050, zx1051), zx88, ba, bb, bc) → new_psPs(zx1051, zx88, ba, bb, bc)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_foldr(zx144, zx145, :(zx1460, zx1461), ba, bb, bc) → new_foldr(zx144, zx145, zx1461, ba, bb, bc)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_psPs0(:(zx1260, zx1261), zx89, ba, bb) → new_psPs0(zx1261, zx89, ba, bb)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_foldr0(zx109, :(zx1100, zx1101), ba, bb) → new_foldr0(zx109, zx1101, ba, bb)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_primMinusNat(Succ(zx160000), Succ(zx15800)) → new_primMinusNat(zx160000, zx15800)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_primPlusNat(Succ(zx24500), Succ(zx153000)) → new_primPlusNat(zx24500, zx153000)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_dsEm(zx688, zx36411) → new_enforceWHNF(zx688, zx688, zx36411)
new_enforceWHNF(zx678, zx677, :(zx36410, zx36411)) → new_dsEm(new_primPlusInt(zx677, zx36410), zx36411)

The TRS R consists of the following rules:

new_primPlusInt(Neg(zx4590), False) → new_primPlusInt4(zx4590)
new_primPlusInt4(zx4590) → new_primPlusInt0(zx4590)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusInt3(zx4590) → new_primPlusInt5(zx4590)
new_primPlusInt(Pos(zx4590), False) → new_primPlusInt2(zx4590)
new_primPlusInt(Neg(zx4590), True) → new_primPlusInt0(zx4590)
new_primMinusNat0(Zero, Zero) → Pos(Zero)
new_primPlusInt5(zx4740) → Pos(new_primPlusNat0(zx4740, Zero))
new_primMinusNat0(Succ(zx160000), Zero) → Pos(Succ(zx160000))
new_primPlusInt0(zx4590) → new_primPlusInt1(zx4590)
new_primPlusInt(Pos(zx4590), True) → new_primPlusInt3(zx4590)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primMinusNat0(Zero, Succ(zx15800)) → Neg(Succ(zx15800))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primPlusInt2(zx4590) → new_primPlusInt3(zx4590)
new_primMinusNat0(Succ(zx160000), Succ(zx15800)) → new_primMinusNat0(zx160000, zx15800)
new_primPlusInt1(zx4740) → new_primMinusNat0(Zero, zx4740)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusInt2(x0)
new_primPlusInt(Pos(x0), False)
new_primPlusInt4(x0)
new_primMinusNat0(Succ(x0), Succ(x1))
new_primPlusInt0(x0)
new_primPlusNat0(Succ(x0), Zero)
new_primPlusInt(Pos(x0), True)
new_primPlusInt(Neg(x0), True)
new_primPlusNat0(Zero, Zero)
new_primMinusNat0(Succ(x0), Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt(Neg(x0), False)
new_primPlusInt1(x0)
new_primMinusNat0(Zero, Zero)
new_primPlusInt3(x0)
new_primPlusInt5(x0)
new_primMinusNat0(Zero, Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ UsableRulesProof
QDP
                                        ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_dsEm(zx688, zx36411) → new_enforceWHNF(zx688, zx688, zx36411)
new_enforceWHNF(zx678, zx677, :(zx36410, zx36411)) → new_dsEm(new_primPlusInt(zx677, zx36410), zx36411)

The TRS R consists of the following rules:

new_primPlusInt(Neg(zx4590), False) → new_primPlusInt4(zx4590)
new_primPlusInt(Pos(zx4590), False) → new_primPlusInt2(zx4590)
new_primPlusInt(Neg(zx4590), True) → new_primPlusInt0(zx4590)
new_primPlusInt(Pos(zx4590), True) → new_primPlusInt3(zx4590)
new_primPlusInt3(zx4590) → new_primPlusInt5(zx4590)
new_primPlusInt5(zx4740) → Pos(new_primPlusNat0(zx4740, Zero))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusInt0(zx4590) → new_primPlusInt1(zx4590)
new_primPlusInt1(zx4740) → new_primMinusNat0(Zero, zx4740)
new_primMinusNat0(Zero, Zero) → Pos(Zero)
new_primMinusNat0(Zero, Succ(zx15800)) → Neg(Succ(zx15800))
new_primPlusInt2(zx4590) → new_primPlusInt3(zx4590)
new_primPlusInt4(zx4590) → new_primPlusInt0(zx4590)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusInt2(x0)
new_primPlusInt(Pos(x0), False)
new_primPlusInt4(x0)
new_primMinusNat0(Succ(x0), Succ(x1))
new_primPlusInt0(x0)
new_primPlusNat0(Succ(x0), Zero)
new_primPlusInt(Pos(x0), True)
new_primPlusInt(Neg(x0), True)
new_primPlusNat0(Zero, Zero)
new_primMinusNat0(Succ(x0), Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt(Neg(x0), False)
new_primPlusInt1(x0)
new_primMinusNat0(Zero, Zero)
new_primPlusInt3(x0)
new_primPlusInt5(x0)
new_primMinusNat0(Zero, Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_dsEm0(zx673, zx36011) → new_enforceWHNF0(zx673, zx673, zx36011)
new_enforceWHNF0(zx664, zx663, :(zx36010, zx36011)) → new_dsEm0(new_primPlusInt6(zx663, zx36010), zx36011)

The TRS R consists of the following rules:

new_primPlusInt6(Neg(zx4740), GT) → new_primPlusInt11(zx4740)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusInt8(zx4740) → new_primPlusInt7(zx4740)
new_primPlusInt6(Pos(zx4740), EQ) → new_primPlusInt10(zx4740)
new_primPlusInt6(Pos(zx4740), LT) → new_primPlusInt9(zx4740)
new_primPlusInt9(zx4740) → new_primPlusInt12(zx4740)
new_primMinusNat0(Zero, Zero) → Pos(Zero)
new_primPlusInt6(Pos(zx4740), GT) → new_primPlusInt10(zx4740)
new_primPlusInt5(zx4740) → Pos(new_primPlusNat0(zx4740, Zero))
new_primMinusNat0(Succ(zx160000), Zero) → Pos(Succ(zx160000))
new_primPlusInt6(Neg(zx4740), EQ) → new_primPlusInt11(zx4740)
new_primPlusInt6(Neg(zx4740), LT) → new_primPlusInt8(zx4740)
new_primPlusInt7(zx4740) → new_primPlusInt1(zx4740)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primMinusNat0(Zero, Succ(zx15800)) → Neg(Succ(zx15800))
new_primPlusInt11(zx4740) → new_primPlusInt7(zx4740)
new_primPlusInt10(zx4740) → new_primPlusInt12(zx4740)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat0(Succ(zx160000), Succ(zx15800)) → new_primMinusNat0(zx160000, zx15800)
new_primPlusInt12(zx4740) → new_primPlusInt5(zx4740)
new_primPlusInt1(zx4740) → new_primMinusNat0(Zero, zx4740)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusInt6(Pos(x0), GT)
new_primPlusInt11(x0)
new_primMinusNat0(Succ(x0), Succ(x1))
new_primPlusNat0(Succ(x0), Zero)
new_primPlusInt7(x0)
new_primPlusInt6(Neg(x0), GT)
new_primPlusInt6(Neg(x0), EQ)
new_primPlusInt10(x0)
new_primPlusNat0(Zero, Zero)
new_primPlusInt6(Pos(x0), EQ)
new_primMinusNat0(Succ(x0), Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt6(Neg(x0), LT)
new_primPlusInt12(x0)
new_primPlusInt6(Pos(x0), LT)
new_primPlusInt1(x0)
new_primMinusNat0(Zero, Zero)
new_primMinusNat0(Zero, Succ(x0))
new_primPlusInt9(x0)
new_primPlusInt5(x0)
new_primPlusInt8(x0)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ UsableRulesProof
QDP
                                        ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_dsEm0(zx673, zx36011) → new_enforceWHNF0(zx673, zx673, zx36011)
new_enforceWHNF0(zx664, zx663, :(zx36010, zx36011)) → new_dsEm0(new_primPlusInt6(zx663, zx36010), zx36011)

The TRS R consists of the following rules:

new_primPlusInt6(Neg(zx4740), GT) → new_primPlusInt11(zx4740)
new_primPlusInt6(Pos(zx4740), EQ) → new_primPlusInt10(zx4740)
new_primPlusInt6(Pos(zx4740), LT) → new_primPlusInt9(zx4740)
new_primPlusInt6(Pos(zx4740), GT) → new_primPlusInt10(zx4740)
new_primPlusInt6(Neg(zx4740), EQ) → new_primPlusInt11(zx4740)
new_primPlusInt6(Neg(zx4740), LT) → new_primPlusInt8(zx4740)
new_primPlusInt8(zx4740) → new_primPlusInt7(zx4740)
new_primPlusInt7(zx4740) → new_primPlusInt1(zx4740)
new_primPlusInt1(zx4740) → new_primMinusNat0(Zero, zx4740)
new_primMinusNat0(Zero, Zero) → Pos(Zero)
new_primMinusNat0(Zero, Succ(zx15800)) → Neg(Succ(zx15800))
new_primPlusInt11(zx4740) → new_primPlusInt7(zx4740)
new_primPlusInt10(zx4740) → new_primPlusInt12(zx4740)
new_primPlusInt12(zx4740) → new_primPlusInt5(zx4740)
new_primPlusInt5(zx4740) → Pos(new_primPlusNat0(zx4740, Zero))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusInt9(zx4740) → new_primPlusInt12(zx4740)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusInt6(Pos(x0), GT)
new_primPlusInt11(x0)
new_primMinusNat0(Succ(x0), Succ(x1))
new_primPlusNat0(Succ(x0), Zero)
new_primPlusInt7(x0)
new_primPlusInt6(Neg(x0), GT)
new_primPlusInt6(Neg(x0), EQ)
new_primPlusInt10(x0)
new_primPlusNat0(Zero, Zero)
new_primPlusInt6(Pos(x0), EQ)
new_primMinusNat0(Succ(x0), Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt6(Neg(x0), LT)
new_primPlusInt12(x0)
new_primPlusInt6(Pos(x0), LT)
new_primPlusInt1(x0)
new_primMinusNat0(Zero, Zero)
new_primMinusNat0(Zero, Succ(x0))
new_primPlusInt9(x0)
new_primPlusInt5(x0)
new_primPlusInt8(x0)

We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_index12(zx544, Succ(zx5450)) → new_index12(zx544, zx5450)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_index120(zx704, zx705, Succ(zx7060)) → new_index120(zx704, zx705, zx7060)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_index121(zx631, zx632, Succ(zx6330), Succ(zx6340)) → new_index121(zx631, zx632, zx6330, zx6340)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_index122(zx504, zx505, Succ(zx5060)) → new_index122(zx504, zx505, zx5060)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_index123(zx525, Succ(zx5260)) → new_index123(zx525, zx5260)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_index124(zx700, zx701, Succ(zx7020)) → new_index124(zx700, zx701, zx7020)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_index125(zx626, zx627, Succ(zx6280), Succ(zx6290)) → new_index125(zx626, zx627, zx6280, zx6290)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_index8(zx30, zx31, Succ(zx176000), Succ(zx129000)) → new_index8(zx30, zx31, zx176000, zx129000)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_index80(zx30, zx31, Succ(zx130000), Succ(zx161000), zx129) → new_index80(zx30, zx31, zx130000, zx161000, zx129)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_index5(zx568, Succ(zx5690)) → new_index5(zx568, zx5690)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_index50(zx708, zx709, Succ(zx7100)) → new_index50(zx708, zx709, zx7100)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_index51(zx657, zx658, Succ(zx6590), Succ(zx6600)) → new_index51(zx657, zx658, zx6590, zx6600)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_index52(zx531, zx532, Succ(zx5330)) → new_index52(zx531, zx532, zx5330)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_index53(zx556, Succ(zx5570)) → new_index53(zx556, zx5570)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_index54(zx692, zx693, Succ(zx6940)) → new_index54(zx692, zx693, zx6940)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_index55(zx652, zx653, Succ(zx6540), Succ(zx6550)) → new_index55(zx652, zx653, zx6540, zx6550)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_primMulNat(Succ(zx159000), zx16000) → new_primMulNat(zx159000, zx16000)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ DependencyGraphProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_ps1(zx30000), new_ps1(zx30000))
new_takeWhile11(zx435, zx436, zx437, Succ(zx4380), Succ(zx4390)) → new_takeWhile11(zx435, zx436, zx437, zx4380, zx4390)
new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(new_ps0, new_ps0)
new_takeWhile0(Neg(Succ(zx31000)), Neg(Succ(zx30000))) → new_takeWhile11(zx31000, zx30000, new_ps1(zx30000), zx31000, zx30000)
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, new_ps(zx30000), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_ps1(zx30000), new_ps1(zx30000))
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, new_ps0, new_ps0)
new_takeWhile12(zx435, zx436, zx437) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, new_ps2, new_ps2)
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_ps0, new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile11(zx435, zx436, zx437, Zero, Succ(zx4390)) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), new_ps2, new_ps2)
new_takeWhile11(zx435, zx436, zx437, Zero, Zero) → new_takeWhile12(zx435, zx436, zx437)
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(new_ps2, new_ps2)

The TRS R consists of the following rules:

new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_ps(zx3000) → new_primPlusInt13(Pos(Succ(zx3000)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_ps(x0)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 3 SCCs.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
QDP
                                          ↳ UsableRulesProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(new_ps0, new_ps0)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_ps1(zx30000), new_ps1(zx30000))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(new_ps2, new_ps2)

The TRS R consists of the following rules:

new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_ps(zx3000) → new_primPlusInt13(Pos(Succ(zx3000)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_ps(x0)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
QDP
                                              ↳ QReductionProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(new_ps0, new_ps0)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_ps1(zx30000), new_ps1(zx30000))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(new_ps2, new_ps2)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_ps(x0)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_ps(x0)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
QDP
                                                  ↳ Rewriting
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(new_ps0, new_ps0)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_ps1(zx30000), new_ps1(zx30000))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(new_ps2, new_ps2)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(new_ps0, new_ps0) at position [0] we obtained the following new rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(new_primPlusInt13(Pos(Zero)), new_ps0)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
QDP
                                                      ↳ Rewriting
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_ps1(zx30000), new_ps1(zx30000))
new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(new_ps2, new_ps2)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_ps1(zx30000), new_ps1(zx30000)) at position [0] we obtained the following new rules:

new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primPlusInt13(Neg(Succ(zx30000))), new_ps1(zx30000))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
QDP
                                                          ↳ Rewriting
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primPlusInt13(Neg(Succ(zx30000))), new_ps1(zx30000))
new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(new_ps2, new_ps2)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(new_ps2, new_ps2) at position [0] we obtained the following new rules:

new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(new_primPlusInt13(Neg(Zero)), new_ps2)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
QDP
                                                              ↳ Rewriting
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(new_primPlusInt13(Neg(Zero)), new_ps2)
new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primPlusInt13(Neg(Succ(zx30000))), new_ps1(zx30000))

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(new_primPlusInt13(Pos(Zero)), new_ps0) at position [0] we obtained the following new rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(new_primPlusNat1(Zero, Zero)), new_ps0)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
QDP
                                                                  ↳ Rewriting
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(new_primPlusNat1(Zero, Zero)), new_ps0)
new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(new_primPlusInt13(Neg(Zero)), new_ps2)
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primPlusInt13(Neg(Succ(zx30000))), new_ps1(zx30000))

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primPlusInt13(Neg(Succ(zx30000))), new_ps1(zx30000)) at position [0] we obtained the following new rules:

new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_ps1(zx30000))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
QDP
                                                                      ↳ Rewriting
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(new_primPlusNat1(Zero, Zero)), new_ps0)
new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(new_primPlusInt13(Neg(Zero)), new_ps2)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_ps1(zx30000))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(new_primPlusInt13(Neg(Zero)), new_ps2) at position [0] we obtained the following new rules:

new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_ps2)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
QDP
                                                                          ↳ Rewriting
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(new_primPlusNat1(Zero, Zero)), new_ps0)
new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_ps2)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_ps1(zx30000))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(new_primPlusNat1(Zero, Zero)), new_ps0) at position [0,0] we obtained the following new rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_ps0)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
QDP
                                                                              ↳ Rewriting
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_ps2)
new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_ps0)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_ps1(zx30000))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_ps1(zx30000)) at position [1] we obtained the following new rules:

new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
QDP
                                                                                  ↳ UsableRulesProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_ps2)
new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_ps0)
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
QDP
                                                                                      ↳ QReductionProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_ps2)
new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_ps0)
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_ps1(x0)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
QDP
                                                                                          ↳ Rewriting
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_ps2)
new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_ps0)
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_ps2) at position [1] we obtained the following new rules:

new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
QDP
                                                                                              ↳ UsableRulesProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_ps0)
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ UsableRulesProof
QDP
                                                                                                  ↳ QReductionProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_ps0)
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_ps2



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ UsableRulesProof
                                                                                                ↳ QDP
                                                                                                  ↳ QReductionProof
QDP
                                                                                                      ↳ Rewriting
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_ps0)
new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero))) at position [1] we obtained the following new rules:

new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ UsableRulesProof
                                                                                                ↳ QDP
                                                                                                  ↳ QReductionProof
                                                                                                    ↳ QDP
                                                                                                      ↳ Rewriting
QDP
                                                                                                          ↳ UsableRulesProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_ps0)
new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ UsableRulesProof
                                                                                                ↳ QDP
                                                                                                  ↳ QReductionProof
                                                                                                    ↳ QDP
                                                                                                      ↳ Rewriting
                                                                                                        ↳ QDP
                                                                                                          ↳ UsableRulesProof
QDP
                                                                                                              ↳ Rewriting
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_ps0)
new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))

The TRS R consists of the following rules:

new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_ps0) at position [1] we obtained the following new rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ UsableRulesProof
                                                                                                ↳ QDP
                                                                                                  ↳ QReductionProof
                                                                                                    ↳ QDP
                                                                                                      ↳ Rewriting
                                                                                                        ↳ QDP
                                                                                                          ↳ UsableRulesProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
QDP
                                                                                                                  ↳ UsableRulesProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))

The TRS R consists of the following rules:

new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ UsableRulesProof
                                                                                                ↳ QDP
                                                                                                  ↳ QReductionProof
                                                                                                    ↳ QDP
                                                                                                      ↳ Rewriting
                                                                                                        ↳ QDP
                                                                                                          ↳ UsableRulesProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ UsableRulesProof
QDP
                                                                                                                      ↳ QReductionProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))

The TRS R consists of the following rules:

new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_ps0



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ UsableRulesProof
                                                                                                ↳ QDP
                                                                                                  ↳ QReductionProof
                                                                                                    ↳ QDP
                                                                                                      ↳ Rewriting
                                                                                                        ↳ QDP
                                                                                                          ↳ UsableRulesProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ UsableRulesProof
                                                                                                                    ↳ QDP
                                                                                                                      ↳ QReductionProof
QDP
                                                                                                                          ↳ Rewriting
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))

The TRS R consists of the following rules:

new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero))) at position [1] we obtained the following new rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ UsableRulesProof
                                                                                                ↳ QDP
                                                                                                  ↳ QReductionProof
                                                                                                    ↳ QDP
                                                                                                      ↳ Rewriting
                                                                                                        ↳ QDP
                                                                                                          ↳ UsableRulesProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ UsableRulesProof
                                                                                                                    ↳ QDP
                                                                                                                      ↳ QReductionProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
QDP
                                                                                                                              ↳ UsableRulesProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))

The TRS R consists of the following rules:

new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ UsableRulesProof
                                                                                                ↳ QDP
                                                                                                  ↳ QReductionProof
                                                                                                    ↳ QDP
                                                                                                      ↳ Rewriting
                                                                                                        ↳ QDP
                                                                                                          ↳ UsableRulesProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ UsableRulesProof
                                                                                                                    ↳ QDP
                                                                                                                      ↳ QReductionProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ UsableRulesProof
QDP
                                                                                                                                  ↳ QReductionProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Succ(x0), Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ UsableRulesProof
                                                                                                ↳ QDP
                                                                                                  ↳ QReductionProof
                                                                                                    ↳ QDP
                                                                                                      ↳ Rewriting
                                                                                                        ↳ QDP
                                                                                                          ↳ UsableRulesProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ UsableRulesProof
                                                                                                                    ↳ QDP
                                                                                                                      ↳ QReductionProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ UsableRulesProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ QReductionProof
QDP
                                                                                                                                      ↳ Rewriting
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat1(Succ(x0), x1)
new_primMinusNat1(Zero)
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero))) at position [1,0] we obtained the following new rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ UsableRulesProof
                                                                                                ↳ QDP
                                                                                                  ↳ QReductionProof
                                                                                                    ↳ QDP
                                                                                                      ↳ Rewriting
                                                                                                        ↳ QDP
                                                                                                          ↳ UsableRulesProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ UsableRulesProof
                                                                                                                    ↳ QDP
                                                                                                                      ↳ QReductionProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ UsableRulesProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ QReductionProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
QDP
                                                                                                                                          ↳ UsableRulesProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat1(Succ(x0), x1)
new_primMinusNat1(Zero)
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ UsableRulesProof
                                                                                                ↳ QDP
                                                                                                  ↳ QReductionProof
                                                                                                    ↳ QDP
                                                                                                      ↳ Rewriting
                                                                                                        ↳ QDP
                                                                                                          ↳ UsableRulesProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ UsableRulesProof
                                                                                                                    ↳ QDP
                                                                                                                      ↳ QReductionProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ UsableRulesProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ QReductionProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ UsableRulesProof
QDP
                                                                                                                                              ↳ QReductionProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat1(Succ(x0), x1)
new_primMinusNat1(Zero)
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_primPlusNat1(Succ(x0), x1)
new_primPlusNat1(Zero, x0)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ UsableRulesProof
                                                                                                ↳ QDP
                                                                                                  ↳ QReductionProof
                                                                                                    ↳ QDP
                                                                                                      ↳ Rewriting
                                                                                                        ↳ QDP
                                                                                                          ↳ UsableRulesProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ UsableRulesProof
                                                                                                                    ↳ QDP
                                                                                                                      ↳ QReductionProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ UsableRulesProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ QReductionProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ QReductionProof
QDP
                                                                                                                                                  ↳ Rewriting
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primMinusNat1(Zero)
new_primPlusInt13(Pos(x0))
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000)))) at position [1] we obtained the following new rules:

new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ UsableRulesProof
                                                                                                ↳ QDP
                                                                                                  ↳ QReductionProof
                                                                                                    ↳ QDP
                                                                                                      ↳ Rewriting
                                                                                                        ↳ QDP
                                                                                                          ↳ UsableRulesProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ UsableRulesProof
                                                                                                                    ↳ QDP
                                                                                                                      ↳ QReductionProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ UsableRulesProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ QReductionProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ QReductionProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
QDP
                                                                                                                                                      ↳ UsableRulesProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primMinusNat1(Zero)
new_primPlusInt13(Pos(x0))
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ UsableRulesProof
                                                                                                ↳ QDP
                                                                                                  ↳ QReductionProof
                                                                                                    ↳ QDP
                                                                                                      ↳ Rewriting
                                                                                                        ↳ QDP
                                                                                                          ↳ UsableRulesProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ UsableRulesProof
                                                                                                                    ↳ QDP
                                                                                                                      ↳ QReductionProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ UsableRulesProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ QReductionProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ QReductionProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
QDP
                                                                                                                                                          ↳ QReductionProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primMinusNat1(Zero)
new_primPlusInt13(Pos(x0))
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusInt13(Pos(x0))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ UsableRulesProof
                                                                                                ↳ QDP
                                                                                                  ↳ QReductionProof
                                                                                                    ↳ QDP
                                                                                                      ↳ Rewriting
                                                                                                        ↳ QDP
                                                                                                          ↳ UsableRulesProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ UsableRulesProof
                                                                                                                    ↳ QDP
                                                                                                                      ↳ QReductionProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ UsableRulesProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ QReductionProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ QReductionProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
QDP
                                                                                                                                                              ↳ QDPOrderProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


new_takeWhile0(Neg(Zero), Neg(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
The remaining pairs can at least be oriented weakly.

new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
Used ordering: Polynomial interpretation [25]:

POL(Neg(x1)) = x1   
POL(Pos(x1)) = 0   
POL(Succ(x1)) = 0   
POL(Zero) = 1   
POL(new_primMinusNat1(x1)) = 0   
POL(new_takeWhile0(x1, x2)) = x2   
POL(new_takeWhile2(x1, x2)) = x2   

The following usable rules [17] were oriented:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ UsableRulesProof
                                                                                                ↳ QDP
                                                                                                  ↳ QReductionProof
                                                                                                    ↳ QDP
                                                                                                      ↳ Rewriting
                                                                                                        ↳ QDP
                                                                                                          ↳ UsableRulesProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ UsableRulesProof
                                                                                                                    ↳ QDP
                                                                                                                      ↳ QReductionProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ UsableRulesProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ QReductionProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ QReductionProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


new_takeWhile0(Neg(Zero), Neg(Succ(zx30000))) → new_takeWhile2(new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
The remaining pairs can at least be oriented weakly.

new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
Used ordering: Polynomial interpretation [25]:

POL(Neg(x1)) = 1 + x1   
POL(Pos(x1)) = 0   
POL(Succ(x1)) = 1 + x1   
POL(Zero) = 0   
POL(new_primMinusNat1(x1)) = 1 + x1   
POL(new_takeWhile0(x1, x2)) = x2   
POL(new_takeWhile2(x1, x2)) = x2   

The following usable rules [17] were oriented:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ UsableRulesProof
                                                                                                ↳ QDP
                                                                                                  ↳ QReductionProof
                                                                                                    ↳ QDP
                                                                                                      ↳ Rewriting
                                                                                                        ↳ QDP
                                                                                                          ↳ UsableRulesProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ UsableRulesProof
                                                                                                                    ↳ QDP
                                                                                                                      ↳ QReductionProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ UsableRulesProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ QReductionProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ QReductionProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ UsableRulesProof
                                                                                                ↳ QDP
                                                                                                  ↳ QReductionProof
                                                                                                    ↳ QDP
                                                                                                      ↳ Rewriting
                                                                                                        ↳ QDP
                                                                                                          ↳ UsableRulesProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ UsableRulesProof
                                                                                                                    ↳ QDP
                                                                                                                      ↳ QReductionProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ UsableRulesProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ QReductionProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ QReductionProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
QDP
                                                                                                                                                                          ↳ QReductionProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)

R is empty.
The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ UsableRulesProof
                                                                                                ↳ QDP
                                                                                                  ↳ QReductionProof
                                                                                                    ↳ QDP
                                                                                                      ↳ Rewriting
                                                                                                        ↳ QDP
                                                                                                          ↳ UsableRulesProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ UsableRulesProof
                                                                                                                    ↳ QDP
                                                                                                                      ↳ QReductionProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ UsableRulesProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ QReductionProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ QReductionProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
QDP
                                                                                                                                                                              ↳ Instantiation
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172)
new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By instantiating [15] the rule new_takeWhile2(zx173, zx172) → new_takeWhile0(Neg(Zero), zx172) we obtained the following new rules:

new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero))) → new_takeWhile0(Neg(Zero), Pos(Succ(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ UsableRulesProof
                                                                                                ↳ QDP
                                                                                                  ↳ QReductionProof
                                                                                                    ↳ QDP
                                                                                                      ↳ Rewriting
                                                                                                        ↳ QDP
                                                                                                          ↳ UsableRulesProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ UsableRulesProof
                                                                                                                    ↳ QDP
                                                                                                                      ↳ QReductionProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ UsableRulesProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ QReductionProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ QReductionProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero))) → new_takeWhile0(Neg(Zero), Pos(Succ(Zero)))
new_takeWhile0(Neg(Zero), Pos(Zero)) → new_takeWhile2(Pos(Succ(Zero)), Pos(Succ(Zero)))

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 0 SCCs with 2 less nodes.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
QDP
                                          ↳ UsableRulesProof
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile11(zx435, zx436, zx437, Succ(zx4380), Succ(zx4390)) → new_takeWhile11(zx435, zx436, zx437, zx4380, zx4390)
new_takeWhile0(Neg(Succ(zx31000)), Neg(Succ(zx30000))) → new_takeWhile11(zx31000, zx30000, new_ps1(zx30000), zx31000, zx30000)
new_takeWhile11(zx435, zx436, zx437, Zero, Succ(zx4390)) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile11(zx435, zx436, zx437, Zero, Zero) → new_takeWhile12(zx435, zx436, zx437)
new_takeWhile12(zx435, zx436, zx437) → new_takeWhile0(Neg(Succ(zx435)), zx437)

The TRS R consists of the following rules:

new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_ps(zx3000) → new_primPlusInt13(Pos(Succ(zx3000)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_ps(x0)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
QDP
                                              ↳ QReductionProof
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile11(zx435, zx436, zx437, Succ(zx4380), Succ(zx4390)) → new_takeWhile11(zx435, zx436, zx437, zx4380, zx4390)
new_takeWhile0(Neg(Succ(zx31000)), Neg(Succ(zx30000))) → new_takeWhile11(zx31000, zx30000, new_ps1(zx30000), zx31000, zx30000)
new_takeWhile11(zx435, zx436, zx437, Zero, Succ(zx4390)) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile11(zx435, zx436, zx437, Zero, Zero) → new_takeWhile12(zx435, zx436, zx437)
new_takeWhile12(zx435, zx436, zx437) → new_takeWhile0(Neg(Succ(zx435)), zx437)

The TRS R consists of the following rules:

new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_ps(x0)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_ps(x0)
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps0



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
QDP
                                                  ↳ Rewriting
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Neg(Succ(zx31000)), Neg(Succ(zx30000))) → new_takeWhile11(zx31000, zx30000, new_ps1(zx30000), zx31000, zx30000)
new_takeWhile11(zx435, zx436, zx437, Succ(zx4380), Succ(zx4390)) → new_takeWhile11(zx435, zx436, zx437, zx4380, zx4390)
new_takeWhile11(zx435, zx436, zx437, Zero, Succ(zx4390)) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile11(zx435, zx436, zx437, Zero, Zero) → new_takeWhile12(zx435, zx436, zx437)
new_takeWhile12(zx435, zx436, zx437) → new_takeWhile0(Neg(Succ(zx435)), zx437)

The TRS R consists of the following rules:

new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primMinusNat1(Zero)
new_primPlusInt13(Pos(x0))
new_ps1(x0)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Neg(Succ(zx31000)), Neg(Succ(zx30000))) → new_takeWhile11(zx31000, zx30000, new_ps1(zx30000), zx31000, zx30000) at position [2] we obtained the following new rules:

new_takeWhile0(Neg(Succ(zx31000)), Neg(Succ(zx30000))) → new_takeWhile11(zx31000, zx30000, new_primPlusInt13(Neg(Succ(zx30000))), zx31000, zx30000)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
QDP
                                                      ↳ UsableRulesProof
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile11(zx435, zx436, zx437, Succ(zx4380), Succ(zx4390)) → new_takeWhile11(zx435, zx436, zx437, zx4380, zx4390)
new_takeWhile11(zx435, zx436, zx437, Zero, Succ(zx4390)) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile11(zx435, zx436, zx437, Zero, Zero) → new_takeWhile12(zx435, zx436, zx437)
new_takeWhile12(zx435, zx436, zx437) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile0(Neg(Succ(zx31000)), Neg(Succ(zx30000))) → new_takeWhile11(zx31000, zx30000, new_primPlusInt13(Neg(Succ(zx30000))), zx31000, zx30000)

The TRS R consists of the following rules:

new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primMinusNat1(Zero)
new_primPlusInt13(Pos(x0))
new_ps1(x0)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ UsableRulesProof
QDP
                                                          ↳ QReductionProof
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile11(zx435, zx436, zx437, Succ(zx4380), Succ(zx4390)) → new_takeWhile11(zx435, zx436, zx437, zx4380, zx4390)
new_takeWhile11(zx435, zx436, zx437, Zero, Succ(zx4390)) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile11(zx435, zx436, zx437, Zero, Zero) → new_takeWhile12(zx435, zx436, zx437)
new_takeWhile12(zx435, zx436, zx437) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile0(Neg(Succ(zx31000)), Neg(Succ(zx30000))) → new_takeWhile11(zx31000, zx30000, new_primPlusInt13(Neg(Succ(zx30000))), zx31000, zx30000)

The TRS R consists of the following rules:

new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primMinusNat1(Zero)
new_primPlusInt13(Pos(x0))
new_ps1(x0)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_ps1(x0)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ UsableRulesProof
                                                        ↳ QDP
                                                          ↳ QReductionProof
QDP
                                                              ↳ Rewriting
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile11(zx435, zx436, zx437, Succ(zx4380), Succ(zx4390)) → new_takeWhile11(zx435, zx436, zx437, zx4380, zx4390)
new_takeWhile11(zx435, zx436, zx437, Zero, Succ(zx4390)) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile11(zx435, zx436, zx437, Zero, Zero) → new_takeWhile12(zx435, zx436, zx437)
new_takeWhile12(zx435, zx436, zx437) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile0(Neg(Succ(zx31000)), Neg(Succ(zx30000))) → new_takeWhile11(zx31000, zx30000, new_primPlusInt13(Neg(Succ(zx30000))), zx31000, zx30000)

The TRS R consists of the following rules:

new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primMinusNat1(Zero)
new_primPlusInt13(Pos(x0))
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Neg(Succ(zx31000)), Neg(Succ(zx30000))) → new_takeWhile11(zx31000, zx30000, new_primPlusInt13(Neg(Succ(zx30000))), zx31000, zx30000) at position [2] we obtained the following new rules:

new_takeWhile0(Neg(Succ(zx31000)), Neg(Succ(zx30000))) → new_takeWhile11(zx31000, zx30000, new_primMinusNat1(zx30000), zx31000, zx30000)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ UsableRulesProof
                                                        ↳ QDP
                                                          ↳ QReductionProof
                                                            ↳ QDP
                                                              ↳ Rewriting
QDP
                                                                  ↳ UsableRulesProof
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile11(zx435, zx436, zx437, Succ(zx4380), Succ(zx4390)) → new_takeWhile11(zx435, zx436, zx437, zx4380, zx4390)
new_takeWhile11(zx435, zx436, zx437, Zero, Succ(zx4390)) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile11(zx435, zx436, zx437, Zero, Zero) → new_takeWhile12(zx435, zx436, zx437)
new_takeWhile12(zx435, zx436, zx437) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile0(Neg(Succ(zx31000)), Neg(Succ(zx30000))) → new_takeWhile11(zx31000, zx30000, new_primMinusNat1(zx30000), zx31000, zx30000)

The TRS R consists of the following rules:

new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primMinusNat1(Zero)
new_primPlusInt13(Pos(x0))
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ UsableRulesProof
                                                        ↳ QDP
                                                          ↳ QReductionProof
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ UsableRulesProof
QDP
                                                                      ↳ QReductionProof
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile11(zx435, zx436, zx437, Succ(zx4380), Succ(zx4390)) → new_takeWhile11(zx435, zx436, zx437, zx4380, zx4390)
new_takeWhile11(zx435, zx436, zx437, Zero, Succ(zx4390)) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile11(zx435, zx436, zx437, Zero, Zero) → new_takeWhile12(zx435, zx436, zx437)
new_takeWhile12(zx435, zx436, zx437) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile0(Neg(Succ(zx31000)), Neg(Succ(zx30000))) → new_takeWhile11(zx31000, zx30000, new_primMinusNat1(zx30000), zx31000, zx30000)

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primMinusNat1(Zero)
new_primPlusInt13(Pos(x0))
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusInt13(Pos(x0))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ UsableRulesProof
                                                        ↳ QDP
                                                          ↳ QReductionProof
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ UsableRulesProof
                                                                    ↳ QDP
                                                                      ↳ QReductionProof
QDP
                                                                          ↳ Narrowing
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile11(zx435, zx436, zx437, Succ(zx4380), Succ(zx4390)) → new_takeWhile11(zx435, zx436, zx437, zx4380, zx4390)
new_takeWhile11(zx435, zx436, zx437, Zero, Succ(zx4390)) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile11(zx435, zx436, zx437, Zero, Zero) → new_takeWhile12(zx435, zx436, zx437)
new_takeWhile12(zx435, zx436, zx437) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile0(Neg(Succ(zx31000)), Neg(Succ(zx30000))) → new_takeWhile11(zx31000, zx30000, new_primMinusNat1(zx30000), zx31000, zx30000)

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule new_takeWhile0(Neg(Succ(zx31000)), Neg(Succ(zx30000))) → new_takeWhile11(zx31000, zx30000, new_primMinusNat1(zx30000), zx31000, zx30000) at position [] we obtained the following new rules:

new_takeWhile0(Neg(Succ(y0)), Neg(Succ(Succ(x0)))) → new_takeWhile11(y0, Succ(x0), Neg(Succ(x0)), y0, Succ(x0))
new_takeWhile0(Neg(Succ(y0)), Neg(Succ(Zero))) → new_takeWhile11(y0, Zero, Pos(Zero), y0, Zero)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ UsableRulesProof
                                                        ↳ QDP
                                                          ↳ QReductionProof
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ UsableRulesProof
                                                                    ↳ QDP
                                                                      ↳ QReductionProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
QDP
                                                                              ↳ UsableRulesProof
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile11(zx435, zx436, zx437, Succ(zx4380), Succ(zx4390)) → new_takeWhile11(zx435, zx436, zx437, zx4380, zx4390)
new_takeWhile11(zx435, zx436, zx437, Zero, Succ(zx4390)) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile11(zx435, zx436, zx437, Zero, Zero) → new_takeWhile12(zx435, zx436, zx437)
new_takeWhile12(zx435, zx436, zx437) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile0(Neg(Succ(y0)), Neg(Succ(Succ(x0)))) → new_takeWhile11(y0, Succ(x0), Neg(Succ(x0)), y0, Succ(x0))
new_takeWhile0(Neg(Succ(y0)), Neg(Succ(Zero))) → new_takeWhile11(y0, Zero, Pos(Zero), y0, Zero)

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ UsableRulesProof
                                                        ↳ QDP
                                                          ↳ QReductionProof
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ UsableRulesProof
                                                                    ↳ QDP
                                                                      ↳ QReductionProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ UsableRulesProof
QDP
                                                                                  ↳ QReductionProof
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile11(zx435, zx436, zx437, Succ(zx4380), Succ(zx4390)) → new_takeWhile11(zx435, zx436, zx437, zx4380, zx4390)
new_takeWhile11(zx435, zx436, zx437, Zero, Succ(zx4390)) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile11(zx435, zx436, zx437, Zero, Zero) → new_takeWhile12(zx435, zx436, zx437)
new_takeWhile12(zx435, zx436, zx437) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile0(Neg(Succ(y0)), Neg(Succ(Succ(x0)))) → new_takeWhile11(y0, Succ(x0), Neg(Succ(x0)), y0, Succ(x0))
new_takeWhile0(Neg(Succ(y0)), Neg(Succ(Zero))) → new_takeWhile11(y0, Zero, Pos(Zero), y0, Zero)

R is empty.
The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ UsableRulesProof
                                                        ↳ QDP
                                                          ↳ QReductionProof
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ UsableRulesProof
                                                                    ↳ QDP
                                                                      ↳ QReductionProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ UsableRulesProof
                                                                                ↳ QDP
                                                                                  ↳ QReductionProof
QDP
                                                                                      ↳ QDPOrderProof
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile11(zx435, zx436, zx437, Succ(zx4380), Succ(zx4390)) → new_takeWhile11(zx435, zx436, zx437, zx4380, zx4390)
new_takeWhile11(zx435, zx436, zx437, Zero, Succ(zx4390)) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile11(zx435, zx436, zx437, Zero, Zero) → new_takeWhile12(zx435, zx436, zx437)
new_takeWhile12(zx435, zx436, zx437) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile0(Neg(Succ(y0)), Neg(Succ(Succ(x0)))) → new_takeWhile11(y0, Succ(x0), Neg(Succ(x0)), y0, Succ(x0))
new_takeWhile0(Neg(Succ(y0)), Neg(Succ(Zero))) → new_takeWhile11(y0, Zero, Pos(Zero), y0, Zero)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


new_takeWhile0(Neg(Succ(y0)), Neg(Succ(Zero))) → new_takeWhile11(y0, Zero, Pos(Zero), y0, Zero)
The remaining pairs can at least be oriented weakly.

new_takeWhile11(zx435, zx436, zx437, Succ(zx4380), Succ(zx4390)) → new_takeWhile11(zx435, zx436, zx437, zx4380, zx4390)
new_takeWhile11(zx435, zx436, zx437, Zero, Succ(zx4390)) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile11(zx435, zx436, zx437, Zero, Zero) → new_takeWhile12(zx435, zx436, zx437)
new_takeWhile12(zx435, zx436, zx437) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile0(Neg(Succ(y0)), Neg(Succ(Succ(x0)))) → new_takeWhile11(y0, Succ(x0), Neg(Succ(x0)), y0, Succ(x0))
Used ordering: Polynomial interpretation [25]:

POL(Neg(x1)) = 1   
POL(Pos(x1)) = 0   
POL(Succ(x1)) = 0   
POL(Zero) = 0   
POL(new_takeWhile0(x1, x2)) = x2   
POL(new_takeWhile11(x1, x2, x3, x4, x5)) = x2 + x3   
POL(new_takeWhile12(x1, x2, x3)) = x3   

The following usable rules [17] were oriented: none



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ UsableRulesProof
                                                        ↳ QDP
                                                          ↳ QReductionProof
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ UsableRulesProof
                                                                    ↳ QDP
                                                                      ↳ QReductionProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ UsableRulesProof
                                                                                ↳ QDP
                                                                                  ↳ QReductionProof
                                                                                    ↳ QDP
                                                                                      ↳ QDPOrderProof
QDP
                                                                                          ↳ QDPOrderProof
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile11(zx435, zx436, zx437, Succ(zx4380), Succ(zx4390)) → new_takeWhile11(zx435, zx436, zx437, zx4380, zx4390)
new_takeWhile11(zx435, zx436, zx437, Zero, Succ(zx4390)) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile11(zx435, zx436, zx437, Zero, Zero) → new_takeWhile12(zx435, zx436, zx437)
new_takeWhile12(zx435, zx436, zx437) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile0(Neg(Succ(y0)), Neg(Succ(Succ(x0)))) → new_takeWhile11(y0, Succ(x0), Neg(Succ(x0)), y0, Succ(x0))

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


new_takeWhile11(zx435, zx436, zx437, Zero, Succ(zx4390)) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile11(zx435, zx436, zx437, Zero, Zero) → new_takeWhile12(zx435, zx436, zx437)
The remaining pairs can at least be oriented weakly.

new_takeWhile11(zx435, zx436, zx437, Succ(zx4380), Succ(zx4390)) → new_takeWhile11(zx435, zx436, zx437, zx4380, zx4390)
new_takeWhile12(zx435, zx436, zx437) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile0(Neg(Succ(y0)), Neg(Succ(Succ(x0)))) → new_takeWhile11(y0, Succ(x0), Neg(Succ(x0)), y0, Succ(x0))
Used ordering: Polynomial interpretation [25]:

POL(Neg(x1)) = x1   
POL(Succ(x1)) = 1 + x1   
POL(Zero) = 0   
POL(new_takeWhile0(x1, x2)) = x2   
POL(new_takeWhile11(x1, x2, x3, x4, x5)) = 1 + x3   
POL(new_takeWhile12(x1, x2, x3)) = x3   

The following usable rules [17] were oriented: none



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ UsableRulesProof
                                                        ↳ QDP
                                                          ↳ QReductionProof
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ UsableRulesProof
                                                                    ↳ QDP
                                                                      ↳ QReductionProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ UsableRulesProof
                                                                                ↳ QDP
                                                                                  ↳ QReductionProof
                                                                                    ↳ QDP
                                                                                      ↳ QDPOrderProof
                                                                                        ↳ QDP
                                                                                          ↳ QDPOrderProof
QDP
                                                                                              ↳ DependencyGraphProof
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile11(zx435, zx436, zx437, Succ(zx4380), Succ(zx4390)) → new_takeWhile11(zx435, zx436, zx437, zx4380, zx4390)
new_takeWhile12(zx435, zx436, zx437) → new_takeWhile0(Neg(Succ(zx435)), zx437)
new_takeWhile0(Neg(Succ(y0)), Neg(Succ(Succ(x0)))) → new_takeWhile11(y0, Succ(x0), Neg(Succ(x0)), y0, Succ(x0))

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 2 less nodes.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ UsableRulesProof
                                                        ↳ QDP
                                                          ↳ QReductionProof
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ UsableRulesProof
                                                                    ↳ QDP
                                                                      ↳ QReductionProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ UsableRulesProof
                                                                                ↳ QDP
                                                                                  ↳ QReductionProof
                                                                                    ↳ QDP
                                                                                      ↳ QDPOrderProof
                                                                                        ↳ QDP
                                                                                          ↳ QDPOrderProof
                                                                                            ↳ QDP
                                                                                              ↳ DependencyGraphProof
QDP
                                                                                                  ↳ QDPSizeChangeProof
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile11(zx435, zx436, zx437, Succ(zx4380), Succ(zx4390)) → new_takeWhile11(zx435, zx436, zx437, zx4380, zx4390)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
QDP
                                          ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_ps1(zx30000), new_ps1(zx30000))
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), new_ps2, new_ps2)
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, new_ps(zx30000), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, new_ps0, new_ps0)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, new_ps2, new_ps2)
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_ps0, new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_ps(zx3000) → new_primPlusInt13(Pos(Succ(zx3000)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_ps(x0)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_ps1(zx30000), new_ps1(zx30000)) at position [1] we obtained the following new rules:

new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primPlusInt13(Neg(Succ(zx30000))), new_ps1(zx30000))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
QDP
                                              ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, new_ps(zx30000), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), new_ps2, new_ps2)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, new_ps0, new_ps0)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, new_ps2, new_ps2)
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primPlusInt13(Neg(Succ(zx30000))), new_ps1(zx30000))
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_ps0, new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_ps(zx3000) → new_primPlusInt13(Pos(Succ(zx3000)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_ps(x0)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, new_ps(zx30000), zx30000, zx31000) at position [2] we obtained the following new rules:

new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, new_primPlusInt13(Pos(Succ(zx30000))), zx30000, zx31000)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
QDP
                                                  ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, new_primPlusInt13(Pos(Succ(zx30000))), zx30000, zx31000)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), new_ps2, new_ps2)
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, new_ps0, new_ps0)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, new_ps2, new_ps2)
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primPlusInt13(Neg(Succ(zx30000))), new_ps1(zx30000))
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_ps0, new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_ps(zx3000) → new_primPlusInt13(Pos(Succ(zx3000)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_ps(x0)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
QDP
                                                      ↳ QReductionProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, new_primPlusInt13(Pos(Succ(zx30000))), zx30000, zx31000)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), new_ps2, new_ps2)
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, new_ps0, new_ps0)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, new_ps2, new_ps2)
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primPlusInt13(Neg(Succ(zx30000))), new_ps1(zx30000))
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_ps0, new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_ps(x0)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_ps(x0)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
QDP
                                                          ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), new_ps2, new_ps2)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, new_primPlusInt13(Pos(Succ(zx30000))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, new_ps0, new_ps0)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, new_ps2, new_ps2)
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primPlusInt13(Neg(Succ(zx30000))), new_ps1(zx30000))
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_ps0, new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, new_primPlusInt13(Pos(Succ(zx30000))), zx30000, zx31000) at position [2] we obtained the following new rules:

new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(new_primPlusNat1(Succ(zx30000), Zero)), zx30000, zx31000)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
QDP
                                                              ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(new_primPlusNat1(Succ(zx30000), Zero)), zx30000, zx31000)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), new_ps2, new_ps2)
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, new_ps0, new_ps0)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, new_ps2, new_ps2)
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primPlusInt13(Neg(Succ(zx30000))), new_ps1(zx30000))
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_ps0, new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), new_ps2, new_ps2) at position [1] we obtained the following new rules:

new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Neg(Zero)), new_ps2)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
QDP
                                                                  ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(new_primPlusNat1(Succ(zx30000), Zero)), zx30000, zx31000)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Neg(Zero)), new_ps2)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, new_ps0, new_ps0)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, new_ps2, new_ps2)
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primPlusInt13(Neg(Succ(zx30000))), new_ps1(zx30000))
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_ps0, new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, new_ps0, new_ps0) at position [1] we obtained the following new rules:

new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, new_primPlusInt13(Pos(Zero)), new_ps0)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
QDP
                                                                      ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(new_primPlusNat1(Succ(zx30000), Zero)), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Neg(Zero)), new_ps2)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, new_ps2, new_ps2)
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primPlusInt13(Neg(Succ(zx30000))), new_ps1(zx30000))
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_ps0, new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, new_ps2, new_ps2) at position [1] we obtained the following new rules:

new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, new_primPlusInt13(Neg(Zero)), new_ps2)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
QDP
                                                                          ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(new_primPlusNat1(Succ(zx30000), Zero)), zx30000, zx31000)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, new_primPlusInt13(Neg(Zero)), new_ps2)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Neg(Zero)), new_ps2)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primPlusInt13(Neg(Succ(zx30000))), new_ps1(zx30000))
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_ps0, new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primPlusInt13(Neg(Succ(zx30000))), new_ps1(zx30000)) at position [1] we obtained the following new rules:

new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_ps1(zx30000))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
QDP
                                                                              ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(new_primPlusNat1(Succ(zx30000), Zero)), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Neg(Zero)), new_ps2)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, new_primPlusInt13(Neg(Zero)), new_ps2)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_ps1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_ps0, new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_ps0, new_ps0) at position [1] we obtained the following new rules:

new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Pos(Zero)), new_ps0)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
QDP
                                                                                  ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(new_primPlusNat1(Succ(zx30000), Zero)), zx30000, zx31000)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, new_primPlusInt13(Neg(Zero)), new_ps2)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Neg(Zero)), new_ps2)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_ps1(zx30000))
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(new_primPlusNat1(Succ(zx30000), Zero)), zx30000, zx31000) at position [2,0] we obtained the following new rules:

new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
QDP
                                                                                      ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Neg(Zero)), new_ps2)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, new_primPlusInt13(Neg(Zero)), new_ps2)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_ps1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Neg(Zero)), new_ps2) at position [1] we obtained the following new rules:

new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_ps2)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
QDP
                                                                                          ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, new_primPlusInt13(Neg(Zero)), new_ps2)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_ps2)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_ps1(zx30000))
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, new_primPlusInt13(Pos(Zero)), new_ps0) at position [1] we obtained the following new rules:

new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(new_primPlusNat1(Zero, Zero)), new_ps0)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
QDP
                                                                                              ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, new_primPlusInt13(Neg(Zero)), new_ps2)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(new_primPlusNat1(Zero, Zero)), new_ps0)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_ps2)
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_ps1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, new_primPlusInt13(Neg(Zero)), new_ps2) at position [1] we obtained the following new rules:

new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_ps2)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
QDP
                                                                                                  ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_ps2)
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_ps2)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(new_primPlusNat1(Zero, Zero)), new_ps0)
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_ps1(zx30000))
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_ps1(zx30000)) at position [2] we obtained the following new rules:

new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
QDP
                                                                                                      ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_ps2)
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(new_primPlusNat1(Zero, Zero)), new_ps0)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_ps2)
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
QDP
                                                                                                          ↳ QReductionProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_ps2)
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(new_primPlusNat1(Zero, Zero)), new_ps0)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_ps2)
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_ps1(x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_ps1(x0)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
QDP
                                                                                                              ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_ps2)
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_ps2)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(new_primPlusNat1(Zero, Zero)), new_ps0)
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_ps2) at position [2] we obtained the following new rules:

new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
QDP
                                                                                                                  ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000))))
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(new_primPlusNat1(Zero, Zero)), new_ps0)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_ps2)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primPlusInt13(Neg(Succ(zx30000)))) at position [2] we obtained the following new rules:

new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
QDP
                                                                                                                      ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_ps2)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(new_primPlusNat1(Zero, Zero)), new_ps0)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
QDP
                                                                                                                          ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_ps2)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(new_primPlusNat1(Zero, Zero)), new_ps0)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(new_primPlusNat1(Zero, Zero)), new_ps0) at position [1,0] we obtained the following new rules:

new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_ps0)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
QDP
                                                                                                                              ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_ps2)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_ps2) at position [2] we obtained the following new rules:

new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
QDP
                                                                                                                                  ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_ps0)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
QDP
                                                                                                                                      ↳ QReductionProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_ps2
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_ps2



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
QDP
                                                                                                                                          ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_ps0)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_ps0) at position [2] we obtained the following new rules:

new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
QDP
                                                                                                                                              ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero))) at position [2] we obtained the following new rules:

new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
QDP
                                                                                                                                                  ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero))) at position [2] we obtained the following new rules:

new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
QDP
                                                                                                                                                      ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
QDP
                                                                                                                                                          ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Pos(Zero)), new_ps0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), new_primPlusInt13(Pos(Zero)), new_ps0) at position [1] we obtained the following new rules:

new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(new_primPlusNat1(Zero, Zero)), new_ps0)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
QDP
                                                                                                                                                              ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(new_primPlusNat1(Zero, Zero)), new_ps0)
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))

The TRS R consists of the following rules:

new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero))) at position [2] we obtained the following new rules:

new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
QDP
                                                                                                                                                                  ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(new_primPlusNat1(Zero, Zero)), new_ps0)
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(new_primPlusNat1(Zero, Zero)), new_ps0) at position [1,0] we obtained the following new rules:

new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_ps0)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
QDP
                                                                                                                                                                      ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_ps0)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))

The TRS R consists of the following rules:

new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero))) at position [2,0] we obtained the following new rules:

new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
QDP
                                                                                                                                                                          ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_ps0)

The TRS R consists of the following rules:

new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_ps0) at position [2] we obtained the following new rules:

new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))

The TRS R consists of the following rules:

new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_ps0new_primPlusInt13(Pos(Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
QDP
                                                                                                                                                                                  ↳ QReductionProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_ps0

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_ps0



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
QDP
                                                                                                                                                                                      ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))

The TRS R consists of the following rules:

new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero))) at position [2] we obtained the following new rules:

new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
QDP
                                                                                                                                                                                          ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ UsableRulesProof
QDP
                                                                                                                                                                                              ↳ QReductionProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusInt13(Pos(x0))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ QReductionProof
QDP
                                                                                                                                                                                                  ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero))) at position [2,0] we obtained the following new rules:

new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ QReductionProof
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ Rewriting
QDP
                                                                                                                                                                                                      ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ QReductionProof
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ UsableRulesProof
QDP
                                                                                                                                                                                                          ↳ QReductionProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_primPlusNat1(Succ(x0), x1)
new_primPlusNat1(Zero, x0)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ QReductionProof
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ QReductionProof
QDP
                                                                                                                                                                                                              ↳ Narrowing
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))

The TRS R consists of the following rules:

new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule new_takeWhile0(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile1(zx31000, zx30000, Pos(Succ(Succ(new_primPlusNat0(zx30000, Zero)))), zx30000, zx31000) at position [] we obtained the following new rules:

new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Succ(x0)))) → new_takeWhile1(y0, Succ(x0), Pos(Succ(Succ(Succ(x0)))), Succ(x0), y0)
new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Zero))) → new_takeWhile1(y0, Zero, Pos(Succ(Succ(Zero))), Zero, y0)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ QReductionProof
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Narrowing
QDP
                                                                                                                                                                                                                  ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Succ(x0)))) → new_takeWhile1(y0, Succ(x0), Pos(Succ(Succ(Succ(x0)))), Succ(x0), y0)
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Zero))) → new_takeWhile1(y0, Zero, Pos(Succ(Succ(Zero))), Zero, y0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))

The TRS R consists of the following rules:

new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ QReductionProof
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Narrowing
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ UsableRulesProof
QDP
                                                                                                                                                                                                                      ↳ QReductionProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Succ(x0)))) → new_takeWhile1(y0, Succ(x0), Pos(Succ(Succ(Succ(x0)))), Succ(x0), y0)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Zero))) → new_takeWhile1(y0, Zero, Pos(Succ(Succ(Zero))), Zero, y0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Succ(x0), Zero)
new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Succ(x0), Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ QReductionProof
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Narrowing
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ QReductionProof
QDP
                                                                                                                                                                                                                          ↳ QDPOrderProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Succ(x0)))) → new_takeWhile1(y0, Succ(x0), Pos(Succ(Succ(Succ(x0)))), Succ(x0), y0)
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Zero))) → new_takeWhile1(y0, Zero, Pos(Succ(Succ(Zero))), Zero, y0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


new_takeWhile0(Pos(Succ(zx31000)), Neg(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(zx3100), Neg(Succ(zx30000))) → new_takeWhile(zx3100, new_primMinusNat1(zx30000), new_primMinusNat1(zx30000))
new_takeWhile0(Pos(Zero), Neg(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
The remaining pairs can at least be oriented weakly.

new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Succ(x0)))) → new_takeWhile1(y0, Succ(x0), Pos(Succ(Succ(Succ(x0)))), Succ(x0), y0)
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Zero))) → new_takeWhile1(y0, Zero, Pos(Succ(Succ(Zero))), Zero, y0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)
Used ordering: Polynomial interpretation [25]:

POL(Neg(x1)) = 1 + x1   
POL(Pos(x1)) = 0   
POL(Succ(x1)) = 1 + x1   
POL(Zero) = 0   
POL(new_primMinusNat1(x1)) = 1 + x1   
POL(new_takeWhile(x1, x2, x3)) = x3   
POL(new_takeWhile0(x1, x2)) = x2   
POL(new_takeWhile1(x1, x2, x3, x4, x5)) = x3   
POL(new_takeWhile10(x1, x2, x3)) = x3   

The following usable rules [17] were oriented:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ QReductionProof
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Narrowing
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ QDPOrderProof
QDP
                                                                                                                                                                                                                              ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Succ(x0)))) → new_takeWhile1(y0, Succ(x0), Pos(Succ(Succ(Succ(x0)))), Succ(x0), y0)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Zero))) → new_takeWhile1(y0, Zero, Pos(Succ(Succ(Zero))), Zero, y0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

The TRS R consists of the following rules:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ QReductionProof
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Narrowing
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ QDPOrderProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ UsableRulesProof
QDP
                                                                                                                                                                                                                                  ↳ QReductionProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Succ(x0)))) → new_takeWhile1(y0, Succ(x0), Pos(Succ(Succ(Succ(x0)))), Succ(x0), y0)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Zero))) → new_takeWhile1(y0, Zero, Pos(Succ(Succ(Zero))), Zero, y0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

R is empty.
The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ QReductionProof
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Narrowing
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ QDPOrderProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ QReductionProof
QDP
                                                                                                                                                                                                                                      ↳ Instantiation
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Succ(x0)))) → new_takeWhile1(y0, Succ(x0), Pos(Succ(Succ(Succ(x0)))), Succ(x0), y0)
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165)
new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Zero))) → new_takeWhile1(y0, Zero, Pos(Succ(Succ(Zero))), Zero, y0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By instantiating [15] the rule new_takeWhile(zx3100, zx166, zx165) → new_takeWhile0(Pos(zx3100), zx165) we obtained the following new rules:

new_takeWhile(Succ(z0), Pos(Succ(Zero)), Pos(Succ(Zero))) → new_takeWhile0(Pos(Succ(z0)), Pos(Succ(Zero)))
new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero))) → new_takeWhile0(Pos(Zero), Pos(Succ(Zero)))
new_takeWhile(Succ(z0), z2, z2) → new_takeWhile0(Pos(Succ(z0)), z2)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ QReductionProof
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Narrowing
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ QDPOrderProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ Instantiation
QDP
                                                                                                                                                                                                                                          ↳ DependencyGraphProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile(Succ(z0), Pos(Succ(Zero)), Pos(Succ(Zero))) → new_takeWhile0(Pos(Succ(z0)), Pos(Succ(Zero)))
new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Succ(x0)))) → new_takeWhile1(y0, Succ(x0), Pos(Succ(Succ(Succ(x0)))), Succ(x0), y0)
new_takeWhile0(Pos(Zero), Pos(Zero)) → new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile(Zero, Pos(Succ(Zero)), Pos(Succ(Zero))) → new_takeWhile0(Pos(Zero), Pos(Succ(Zero)))
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Zero))) → new_takeWhile1(y0, Zero, Pos(Succ(Succ(Zero))), Zero, y0)
new_takeWhile(Succ(z0), z2, z2) → new_takeWhile0(Pos(Succ(z0)), z2)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 2 less nodes.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ QReductionProof
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Narrowing
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ QDPOrderProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                          ↳ DependencyGraphProof
QDP
                                                                                                                                                                                                                                              ↳ QDPOrderProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Succ(x0)))) → new_takeWhile1(y0, Succ(x0), Pos(Succ(Succ(Succ(x0)))), Succ(x0), y0)
new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile(Succ(z0), Pos(Succ(Zero)), Pos(Succ(Zero))) → new_takeWhile0(Pos(Succ(z0)), Pos(Succ(Zero)))
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Zero))) → new_takeWhile1(y0, Zero, Pos(Succ(Succ(Zero))), Zero, y0)
new_takeWhile(Succ(z0), z2, z2) → new_takeWhile0(Pos(Succ(z0)), z2)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


new_takeWhile0(Pos(Succ(zx31000)), Pos(Zero)) → new_takeWhile(Succ(zx31000), Pos(Succ(Zero)), Pos(Succ(Zero)))
The remaining pairs can at least be oriented weakly.

new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Succ(x0)))) → new_takeWhile1(y0, Succ(x0), Pos(Succ(Succ(Succ(x0)))), Succ(x0), y0)
new_takeWhile(Succ(z0), Pos(Succ(Zero)), Pos(Succ(Zero))) → new_takeWhile0(Pos(Succ(z0)), Pos(Succ(Zero)))
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Zero))) → new_takeWhile1(y0, Zero, Pos(Succ(Succ(Zero))), Zero, y0)
new_takeWhile(Succ(z0), z2, z2) → new_takeWhile0(Pos(Succ(z0)), z2)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)
Used ordering: Polynomial interpretation [25]:

POL(Pos(x1)) = x1   
POL(Succ(x1)) = 0   
POL(Zero) = 1   
POL(new_takeWhile(x1, x2, x3)) = x3   
POL(new_takeWhile0(x1, x2)) = x2   
POL(new_takeWhile1(x1, x2, x3, x4, x5)) = x3   
POL(new_takeWhile10(x1, x2, x3)) = x3   

The following usable rules [17] were oriented: none



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ QReductionProof
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Narrowing
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ QDPOrderProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                          ↳ DependencyGraphProof
                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                              ↳ QDPOrderProof
QDP
                                                                                                                                                                                                                                                  ↳ QDPOrderProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile(Succ(z0), Pos(Succ(Zero)), Pos(Succ(Zero))) → new_takeWhile0(Pos(Succ(z0)), Pos(Succ(Zero)))
new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Succ(x0)))) → new_takeWhile1(y0, Succ(x0), Pos(Succ(Succ(Succ(x0)))), Succ(x0), y0)
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Zero))) → new_takeWhile1(y0, Zero, Pos(Succ(Succ(Zero))), Zero, y0)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile(Succ(z0), z2, z2) → new_takeWhile0(Pos(Succ(z0)), z2)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Zero))) → new_takeWhile1(y0, Zero, Pos(Succ(Succ(Zero))), Zero, y0)
The remaining pairs can at least be oriented weakly.

new_takeWhile(Succ(z0), Pos(Succ(Zero)), Pos(Succ(Zero))) → new_takeWhile0(Pos(Succ(z0)), Pos(Succ(Zero)))
new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Succ(x0)))) → new_takeWhile1(y0, Succ(x0), Pos(Succ(Succ(Succ(x0)))), Succ(x0), y0)
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile(Succ(z0), z2, z2) → new_takeWhile0(Pos(Succ(z0)), z2)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)
Used ordering: Matrix interpretation [3]:
Non-tuple symbols:
M( Succ(x1) ) =
/0\
\0/
+
/01\
\00/
·x1

M( Pos(x1) ) =
/0\
\0/
+
/00\
\10/
·x1

M( Zero ) =
/0\
\1/

Tuple symbols:
M( new_takeWhile1(x1, ..., x5) ) = 0+
[0,0]
·x1+
[0,0]
·x2+
[0,1]
·x3+
[0,0]
·x4+
[0,0]
·x5

M( new_takeWhile10(x1, ..., x3) ) = 0+
[0,0]
·x1+
[0,0]
·x2+
[0,1]
·x3

M( new_takeWhile0(x1, x2) ) = 0+
[0,0]
·x1+
[0,1]
·x2

M( new_takeWhile(x1, ..., x3) ) = 0+
[0,0]
·x1+
[0,1]
·x2+
[0,0]
·x3


Matrix type:
We used a basic matrix type which is not further parametrizeable.


As matrix orders are CE-compatible, we used usable rules w.r.t. argument filtering in the order.
The following usable rules [17] were oriented: none



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ QReductionProof
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Narrowing
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ QDPOrderProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                          ↳ DependencyGraphProof
                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                  ↳ QDPOrderProof
QDP
                                                                                                                                                                                                                                                      ↳ DependencyGraphProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Succ(x0)))) → new_takeWhile1(y0, Succ(x0), Pos(Succ(Succ(Succ(x0)))), Succ(x0), y0)
new_takeWhile(Succ(z0), Pos(Succ(Zero)), Pos(Succ(Zero))) → new_takeWhile0(Pos(Succ(z0)), Pos(Succ(Zero)))
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile(Succ(z0), z2, z2) → new_takeWhile0(Pos(Succ(z0)), z2)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 1 less node.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ QReductionProof
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Narrowing
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ QDPOrderProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                          ↳ DependencyGraphProof
                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                      ↳ DependencyGraphProof
QDP
                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Succ(x0)))) → new_takeWhile1(y0, Succ(x0), Pos(Succ(Succ(Succ(x0)))), Succ(x0), y0)
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile(Succ(z0), z2, z2) → new_takeWhile0(Pos(Succ(z0)), z2)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By forward instantiating [14] the rule new_takeWhile(Succ(z0), z2, z2) → new_takeWhile0(Pos(Succ(z0)), z2) we obtained the following new rules:

new_takeWhile(Succ(x0), Pos(Succ(Succ(y_1))), Pos(Succ(Succ(y_1)))) → new_takeWhile0(Pos(Succ(x0)), Pos(Succ(Succ(y_1))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ QReductionProof
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Narrowing
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ QDPOrderProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                          ↳ DependencyGraphProof
                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                      ↳ DependencyGraphProof
                                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
QDP
                                                                                                                                                                                                                                                              ↳ ForwardInstantiation
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Succ(x0)))) → new_takeWhile1(y0, Succ(x0), Pos(Succ(Succ(Succ(x0)))), Succ(x0), y0)
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile(Succ(x0), Pos(Succ(Succ(y_1))), Pos(Succ(Succ(y_1)))) → new_takeWhile0(Pos(Succ(x0)), Pos(Succ(Succ(y_1))))
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By forward instantiating [14] the rule new_takeWhile0(Pos(Succ(y0)), Pos(Succ(Succ(x0)))) → new_takeWhile1(y0, Succ(x0), Pos(Succ(Succ(Succ(x0)))), Succ(x0), y0) we obtained the following new rules:

new_takeWhile0(Pos(Succ(Succ(y_4))), Pos(Succ(Succ(x1)))) → new_takeWhile1(Succ(y_4), Succ(x1), Pos(Succ(Succ(Succ(x1)))), Succ(x1), Succ(y_4))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ QReductionProof
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Narrowing
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ QDPOrderProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                          ↳ DependencyGraphProof
                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                      ↳ DependencyGraphProof
                                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                                              ↳ ForwardInstantiation
QDP
                                                                                                                                                                                                                                                                  ↳ ForwardInstantiation
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330)
new_takeWhile0(Pos(Succ(Succ(y_4))), Pos(Succ(Succ(x1)))) → new_takeWhile1(Succ(y_4), Succ(x1), Pos(Succ(Succ(Succ(x1)))), Succ(x1), Succ(y_4))
new_takeWhile(Succ(x0), Pos(Succ(Succ(y_1))), Pos(Succ(Succ(y_1)))) → new_takeWhile0(Pos(Succ(x0)), Pos(Succ(Succ(y_1))))
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By forward instantiating [14] the rule new_takeWhile1(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile1(zx429, zx430, zx431, zx4320, zx4330) we obtained the following new rules:

new_takeWhile1(x0, x1, x2, Succ(Zero), Succ(Succ(y_3))) → new_takeWhile1(x0, x1, x2, Zero, Succ(y_3))
new_takeWhile1(x0, x1, x2, Succ(Succ(y_3)), Succ(Succ(y_4))) → new_takeWhile1(x0, x1, x2, Succ(y_3), Succ(y_4))
new_takeWhile1(x0, x1, x2, Succ(Zero), Succ(Zero)) → new_takeWhile1(x0, x1, x2, Zero, Zero)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ QReductionProof
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Narrowing
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ QDPOrderProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                          ↳ DependencyGraphProof
                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                      ↳ DependencyGraphProof
                                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                                  ↳ ForwardInstantiation
QDP
                                                                                                                                                                                                                                                                      ↳ ForwardInstantiation
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(x0, x1, x2, Succ(Zero), Succ(Succ(y_3))) → new_takeWhile1(x0, x1, x2, Zero, Succ(y_3))
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(x0, x1, x2, Succ(Succ(y_3)), Succ(Succ(y_4))) → new_takeWhile1(x0, x1, x2, Succ(y_3), Succ(y_4))
new_takeWhile(Succ(x0), Pos(Succ(Succ(y_1))), Pos(Succ(Succ(y_1)))) → new_takeWhile0(Pos(Succ(x0)), Pos(Succ(Succ(y_1))))
new_takeWhile0(Pos(Succ(Succ(y_4))), Pos(Succ(Succ(x1)))) → new_takeWhile1(Succ(y_4), Succ(x1), Pos(Succ(Succ(Succ(x1)))), Succ(x1), Succ(y_4))
new_takeWhile1(x0, x1, x2, Succ(Zero), Succ(Zero)) → new_takeWhile1(x0, x1, x2, Zero, Zero)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)
new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By forward instantiating [14] the rule new_takeWhile10(zx429, zx430, zx431) → new_takeWhile(Succ(zx429), zx431, zx431) we obtained the following new rules:

new_takeWhile10(x0, x1, Pos(Succ(Succ(y_1)))) → new_takeWhile(Succ(x0), Pos(Succ(Succ(y_1))), Pos(Succ(Succ(y_1))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ QReductionProof
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Narrowing
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ QDPOrderProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                          ↳ DependencyGraphProof
                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                      ↳ DependencyGraphProof
                                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                                      ↳ ForwardInstantiation
QDP
                                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(x0, x1, x2, Succ(Zero), Succ(Succ(y_3))) → new_takeWhile1(x0, x1, x2, Zero, Succ(y_3))
new_takeWhile10(x0, x1, Pos(Succ(Succ(y_1)))) → new_takeWhile(Succ(x0), Pos(Succ(Succ(y_1))), Pos(Succ(Succ(y_1))))
new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431)
new_takeWhile1(x0, x1, x2, Succ(Succ(y_3)), Succ(Succ(y_4))) → new_takeWhile1(x0, x1, x2, Succ(y_3), Succ(y_4))
new_takeWhile0(Pos(Succ(Succ(y_4))), Pos(Succ(Succ(x1)))) → new_takeWhile1(Succ(y_4), Succ(x1), Pos(Succ(Succ(Succ(x1)))), Succ(x1), Succ(y_4))
new_takeWhile(Succ(x0), Pos(Succ(Succ(y_1))), Pos(Succ(Succ(y_1)))) → new_takeWhile0(Pos(Succ(x0)), Pos(Succ(Succ(y_1))))
new_takeWhile1(x0, x1, x2, Succ(Zero), Succ(Zero)) → new_takeWhile1(x0, x1, x2, Zero, Zero)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By forward instantiating [14] the rule new_takeWhile1(zx429, zx430, zx431, Zero, Zero) → new_takeWhile10(zx429, zx430, zx431) we obtained the following new rules:

new_takeWhile1(x0, x1, Pos(Succ(Succ(y_2))), Zero, Zero) → new_takeWhile10(x0, x1, Pos(Succ(Succ(y_2))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ QReductionProof
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Narrowing
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ QDPOrderProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                          ↳ DependencyGraphProof
                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                      ↳ DependencyGraphProof
                                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                                      ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
QDP
                                                                                                                                                                                                                                                                              ↳ ForwardInstantiation
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(x0, x1, x2, Succ(Zero), Succ(Succ(y_3))) → new_takeWhile1(x0, x1, x2, Zero, Succ(y_3))
new_takeWhile10(x0, x1, Pos(Succ(Succ(y_1)))) → new_takeWhile(Succ(x0), Pos(Succ(Succ(y_1))), Pos(Succ(Succ(y_1))))
new_takeWhile1(x0, x1, Pos(Succ(Succ(y_2))), Zero, Zero) → new_takeWhile10(x0, x1, Pos(Succ(Succ(y_2))))
new_takeWhile1(x0, x1, x2, Succ(Succ(y_3)), Succ(Succ(y_4))) → new_takeWhile1(x0, x1, x2, Succ(y_3), Succ(y_4))
new_takeWhile(Succ(x0), Pos(Succ(Succ(y_1))), Pos(Succ(Succ(y_1)))) → new_takeWhile0(Pos(Succ(x0)), Pos(Succ(Succ(y_1))))
new_takeWhile0(Pos(Succ(Succ(y_4))), Pos(Succ(Succ(x1)))) → new_takeWhile1(Succ(y_4), Succ(x1), Pos(Succ(Succ(Succ(x1)))), Succ(x1), Succ(y_4))
new_takeWhile1(x0, x1, x2, Succ(Zero), Succ(Zero)) → new_takeWhile1(x0, x1, x2, Zero, Zero)
new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By forward instantiating [14] the rule new_takeWhile1(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile(Succ(zx429), zx431, zx431) we obtained the following new rules:

new_takeWhile1(x0, x1, Pos(Succ(Succ(y_1))), Zero, Succ(x3)) → new_takeWhile(Succ(x0), Pos(Succ(Succ(y_1))), Pos(Succ(Succ(y_1))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ UsableRulesProof
                                                    ↳ QDP
                                                      ↳ QReductionProof
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ UsableRulesProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Rewriting
                                                                                                                            ↳ QDP
                                                                                                                              ↳ Rewriting
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QReductionProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ Rewriting
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ Rewriting
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ QReductionProof
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ Rewriting
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Narrowing
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ QDPOrderProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ QReductionProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                          ↳ DependencyGraphProof
                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                      ↳ DependencyGraphProof
                                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                                      ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                                                              ↳ ForwardInstantiation
QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile1(x0, x1, x2, Succ(Zero), Succ(Succ(y_3))) → new_takeWhile1(x0, x1, x2, Zero, Succ(y_3))
new_takeWhile1(x0, x1, Pos(Succ(Succ(y_1))), Zero, Succ(x3)) → new_takeWhile(Succ(x0), Pos(Succ(Succ(y_1))), Pos(Succ(Succ(y_1))))
new_takeWhile10(x0, x1, Pos(Succ(Succ(y_1)))) → new_takeWhile(Succ(x0), Pos(Succ(Succ(y_1))), Pos(Succ(Succ(y_1))))
new_takeWhile1(x0, x1, Pos(Succ(Succ(y_2))), Zero, Zero) → new_takeWhile10(x0, x1, Pos(Succ(Succ(y_2))))
new_takeWhile1(x0, x1, x2, Succ(Succ(y_3)), Succ(Succ(y_4))) → new_takeWhile1(x0, x1, x2, Succ(y_3), Succ(y_4))
new_takeWhile0(Pos(Succ(Succ(y_4))), Pos(Succ(Succ(x1)))) → new_takeWhile1(Succ(y_4), Succ(x1), Pos(Succ(Succ(Succ(x1)))), Succ(x1), Succ(y_4))
new_takeWhile(Succ(x0), Pos(Succ(Succ(y_1))), Pos(Succ(Succ(y_1)))) → new_takeWhile0(Pos(Succ(x0)), Pos(Succ(Succ(y_1))))
new_takeWhile1(x0, x1, x2, Succ(Zero), Succ(Zero)) → new_takeWhile1(x0, x1, x2, Zero, Zero)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ DependencyGraphProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), new_primPlusInt13(Neg(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, new_primPlusInt13(Pos(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile14(zx487, zx488, Succ(zx4890), Succ(zx4900)) → new_takeWhile14(zx487, zx488, zx4890, zx4900)
new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(new_primPlusInt13(Pos(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), new_primPlusInt13(Pos(Succ(zx445))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), new_primPlusInt13(Pos(Succ(zx445))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), new_primPlusInt13(Pos(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile6(zx487, zx520, zx519) → new_takeWhile4(Integer(Neg(Succ(zx487))), Integer(zx519))
new_takeWhile16(zx487, zx488) → new_takeWhile6(zx487, new_primPlusInt13(Neg(Succ(zx488))), new_primPlusInt13(Neg(Succ(zx488))))
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, new_primPlusInt13(Neg(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile14(zx487, zx488, Zero, Succ(zx4900)) → new_takeWhile6(zx487, new_primPlusInt13(Neg(Succ(zx488))), new_primPlusInt13(Neg(Succ(zx488))))
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primPlusInt13(Neg(Succ(zx300000))), new_primPlusInt13(Neg(Succ(zx300000))))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Zero))) → new_takeWhile5(new_primPlusInt13(Neg(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → new_takeWhile5(new_primPlusInt13(Neg(Succ(zx300000))), new_primPlusInt13(Neg(Succ(zx300000))))
new_takeWhile4(Integer(Neg(Succ(zx310000))), Integer(Neg(Succ(zx300000)))) → new_takeWhile14(zx310000, zx300000, zx310000, zx300000)
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile5(zx212, zx211) → new_takeWhile4(Integer(Neg(Zero)), Integer(zx211))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)
new_takeWhile14(zx487, zx488, Zero, Zero) → new_takeWhile16(zx487, zx488)

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 3 SCCs.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
QDP
                                          ↳ Rewriting
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Zero))) → new_takeWhile5(new_primPlusInt13(Neg(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → new_takeWhile5(new_primPlusInt13(Neg(Succ(zx300000))), new_primPlusInt13(Neg(Succ(zx300000))))
new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(new_primPlusInt13(Pos(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile5(zx212, zx211) → new_takeWhile4(Integer(Neg(Zero)), Integer(zx211))

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(new_primPlusInt13(Pos(Zero)), new_primPlusInt13(Pos(Zero))) at position [0] we obtained the following new rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ Rewriting
QDP
                                              ↳ Rewriting
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → new_takeWhile5(new_primPlusInt13(Neg(Succ(zx300000))), new_primPlusInt13(Neg(Succ(zx300000))))
new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Zero))) → new_takeWhile5(new_primPlusInt13(Neg(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile5(zx212, zx211) → new_takeWhile4(Integer(Neg(Zero)), Integer(zx211))

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → new_takeWhile5(new_primPlusInt13(Neg(Succ(zx300000))), new_primPlusInt13(Neg(Succ(zx300000)))) at position [0] we obtained the following new rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → new_takeWhile5(new_primMinusNat1(zx300000), new_primPlusInt13(Neg(Succ(zx300000))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
QDP
                                                  ↳ Rewriting
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Zero))) → new_takeWhile5(new_primPlusInt13(Neg(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile5(zx212, zx211) → new_takeWhile4(Integer(Neg(Zero)), Integer(zx211))
new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → new_takeWhile5(new_primMinusNat1(zx300000), new_primPlusInt13(Neg(Succ(zx300000))))

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Zero))) → new_takeWhile5(new_primPlusInt13(Neg(Zero)), new_primPlusInt13(Neg(Zero))) at position [0] we obtained the following new rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Zero))) → new_takeWhile5(Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
QDP
                                                      ↳ Rewriting
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Zero))) → new_takeWhile5(Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile5(zx212, zx211) → new_takeWhile4(Integer(Neg(Zero)), Integer(zx211))
new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → new_takeWhile5(new_primMinusNat1(zx300000), new_primPlusInt13(Neg(Succ(zx300000))))

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero))) at position [0,0] we obtained the following new rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
QDP
                                                          ↳ Rewriting
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Zero))) → new_takeWhile5(Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile5(zx212, zx211) → new_takeWhile4(Integer(Neg(Zero)), Integer(zx211))
new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → new_takeWhile5(new_primMinusNat1(zx300000), new_primPlusInt13(Neg(Succ(zx300000))))

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → new_takeWhile5(new_primMinusNat1(zx300000), new_primPlusInt13(Neg(Succ(zx300000)))) at position [1] we obtained the following new rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → new_takeWhile5(new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
QDP
                                                              ↳ UsableRulesProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → new_takeWhile5(new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Zero))) → new_takeWhile5(Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile5(zx212, zx211) → new_takeWhile4(Integer(Neg(Zero)), Integer(zx211))
new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ UsableRulesProof
QDP
                                                                  ↳ Rewriting
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → new_takeWhile5(new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Zero))) → new_takeWhile5(Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile5(zx212, zx211) → new_takeWhile4(Integer(Neg(Zero)), Integer(zx211))
new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))

The TRS R consists of the following rules:

new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Zero))) → new_takeWhile5(Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero))) at position [1] we obtained the following new rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(Succ(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ UsableRulesProof
                                                                ↳ QDP
                                                                  ↳ Rewriting
QDP
                                                                      ↳ UsableRulesProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → new_takeWhile5(new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile5(zx212, zx211) → new_takeWhile4(Integer(Neg(Zero)), Integer(zx211))
new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))

The TRS R consists of the following rules:

new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ UsableRulesProof
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ UsableRulesProof
QDP
                                                                          ↳ Rewriting
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → new_takeWhile5(new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile5(zx212, zx211) → new_takeWhile4(Integer(Neg(Zero)), Integer(zx211))
new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))

The TRS R consists of the following rules:

new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero))) at position [1] we obtained the following new rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ UsableRulesProof
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ UsableRulesProof
                                                                        ↳ QDP
                                                                          ↳ Rewriting
QDP
                                                                              ↳ UsableRulesProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → new_takeWhile5(new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile5(zx212, zx211) → new_takeWhile4(Integer(Neg(Zero)), Integer(zx211))
new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(Succ(Zero)))

The TRS R consists of the following rules:

new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ UsableRulesProof
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ UsableRulesProof
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ UsableRulesProof
QDP
                                                                                  ↳ QReductionProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → new_takeWhile5(new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile5(zx212, zx211) → new_takeWhile4(Integer(Neg(Zero)), Integer(zx211))
new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(Succ(Zero)))

The TRS R consists of the following rules:

new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat0(Succ(x0), Zero)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ UsableRulesProof
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ UsableRulesProof
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ UsableRulesProof
                                                                                ↳ QDP
                                                                                  ↳ QReductionProof
QDP
                                                                                      ↳ Rewriting
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → new_takeWhile5(new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile5(zx212, zx211) → new_takeWhile4(Integer(Neg(Zero)), Integer(zx211))
new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(Succ(Zero)))

The TRS R consists of the following rules:

new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero))) at position [1,0] we obtained the following new rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(Succ(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ UsableRulesProof
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ UsableRulesProof
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ UsableRulesProof
                                                                                ↳ QDP
                                                                                  ↳ QReductionProof
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
QDP
                                                                                          ↳ UsableRulesProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → new_takeWhile5(new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile5(zx212, zx211) → new_takeWhile4(Integer(Neg(Zero)), Integer(zx211))
new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(Succ(Zero)))

The TRS R consists of the following rules:

new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ UsableRulesProof
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ UsableRulesProof
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ UsableRulesProof
                                                                                ↳ QDP
                                                                                  ↳ QReductionProof
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ UsableRulesProof
QDP
                                                                                              ↳ QReductionProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → new_takeWhile5(new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile5(zx212, zx211) → new_takeWhile4(Integer(Neg(Zero)), Integer(zx211))
new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(Succ(Zero)))

The TRS R consists of the following rules:

new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_primPlusNat1(Zero, x0)
new_primPlusNat1(Succ(x0), x1)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ UsableRulesProof
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ UsableRulesProof
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ UsableRulesProof
                                                                                ↳ QDP
                                                                                  ↳ QReductionProof
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ UsableRulesProof
                                                                                            ↳ QDP
                                                                                              ↳ QReductionProof
QDP
                                                                                                  ↳ QDPOrderProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → new_takeWhile5(new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile5(zx212, zx211) → new_takeWhile4(Integer(Neg(Zero)), Integer(zx211))
new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(Succ(Zero)))

The TRS R consists of the following rules:

new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → new_takeWhile5(new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile4(Integer(Neg(Zero)), Integer(Neg(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(Succ(Zero)))
The remaining pairs can at least be oriented weakly.

new_takeWhile5(zx212, zx211) → new_takeWhile4(Integer(Neg(Zero)), Integer(zx211))
new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(Succ(Zero)))
Used ordering: Polynomial interpretation [25]:

POL(Integer(x1)) = x1   
POL(Neg(x1)) = 1 + x1   
POL(Pos(x1)) = 0   
POL(Succ(x1)) = 1 + x1   
POL(Zero) = 1   
POL(new_primMinusNat1(x1)) = 1 + x1   
POL(new_takeWhile4(x1, x2)) = x2   
POL(new_takeWhile5(x1, x2)) = x2   

The following usable rules [17] were oriented:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ UsableRulesProof
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ UsableRulesProof
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ UsableRulesProof
                                                                                ↳ QDP
                                                                                  ↳ QReductionProof
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ UsableRulesProof
                                                                                            ↳ QDP
                                                                                              ↳ QReductionProof
                                                                                                ↳ QDP
                                                                                                  ↳ QDPOrderProof
QDP
                                                                                                      ↳ UsableRulesProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile5(zx212, zx211) → new_takeWhile4(Integer(Neg(Zero)), Integer(zx211))
new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(Succ(Zero)))

The TRS R consists of the following rules:

new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ UsableRulesProof
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ UsableRulesProof
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ UsableRulesProof
                                                                                ↳ QDP
                                                                                  ↳ QReductionProof
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ UsableRulesProof
                                                                                            ↳ QDP
                                                                                              ↳ QReductionProof
                                                                                                ↳ QDP
                                                                                                  ↳ QDPOrderProof
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
QDP
                                                                                                          ↳ QReductionProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile5(zx212, zx211) → new_takeWhile4(Integer(Neg(Zero)), Integer(zx211))
new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(Succ(Zero)))

R is empty.
The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ UsableRulesProof
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ UsableRulesProof
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ UsableRulesProof
                                                                                ↳ QDP
                                                                                  ↳ QReductionProof
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ UsableRulesProof
                                                                                            ↳ QDP
                                                                                              ↳ QReductionProof
                                                                                                ↳ QDP
                                                                                                  ↳ QDPOrderProof
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
QDP
                                                                                                              ↳ Instantiation
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile5(zx212, zx211) → new_takeWhile4(Integer(Neg(Zero)), Integer(zx211))
new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(Succ(Zero)))

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By instantiating [15] the rule new_takeWhile5(zx212, zx211) → new_takeWhile4(Integer(Neg(Zero)), Integer(zx211)) we obtained the following new rules:

new_takeWhile5(Pos(Succ(Zero)), Pos(Succ(Zero))) → new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Succ(Zero))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ UsableRulesProof
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ UsableRulesProof
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ UsableRulesProof
                                                                                ↳ QDP
                                                                                  ↳ QReductionProof
                                                                                    ↳ QDP
                                                                                      ↳ Rewriting
                                                                                        ↳ QDP
                                                                                          ↳ UsableRulesProof
                                                                                            ↳ QDP
                                                                                              ↳ QReductionProof
                                                                                                ↳ QDP
                                                                                                  ↳ QDPOrderProof
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ QReductionProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Instantiation
QDP
                                                                                                                  ↳ DependencyGraphProof
                                        ↳ QDP
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile5(Pos(Succ(Zero)), Pos(Succ(Zero))) → new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Succ(Zero))))
new_takeWhile4(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_takeWhile5(Pos(Succ(Zero)), Pos(Succ(Zero)))

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 0 SCCs with 2 less nodes.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
QDP
                                          ↳ UsableRulesProof
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile14(zx487, zx488, Zero, Succ(zx4900)) → new_takeWhile6(zx487, new_primPlusInt13(Neg(Succ(zx488))), new_primPlusInt13(Neg(Succ(zx488))))
new_takeWhile14(zx487, zx488, Succ(zx4890), Succ(zx4900)) → new_takeWhile14(zx487, zx488, zx4890, zx4900)
new_takeWhile4(Integer(Neg(Succ(zx310000))), Integer(Neg(Succ(zx300000)))) → new_takeWhile14(zx310000, zx300000, zx310000, zx300000)
new_takeWhile6(zx487, zx520, zx519) → new_takeWhile4(Integer(Neg(Succ(zx487))), Integer(zx519))
new_takeWhile16(zx487, zx488) → new_takeWhile6(zx487, new_primPlusInt13(Neg(Succ(zx488))), new_primPlusInt13(Neg(Succ(zx488))))
new_takeWhile14(zx487, zx488, Zero, Zero) → new_takeWhile16(zx487, zx488)

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
QDP
                                              ↳ QReductionProof
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile14(zx487, zx488, Zero, Succ(zx4900)) → new_takeWhile6(zx487, new_primPlusInt13(Neg(Succ(zx488))), new_primPlusInt13(Neg(Succ(zx488))))
new_takeWhile14(zx487, zx488, Succ(zx4890), Succ(zx4900)) → new_takeWhile14(zx487, zx488, zx4890, zx4900)
new_takeWhile4(Integer(Neg(Succ(zx310000))), Integer(Neg(Succ(zx300000)))) → new_takeWhile14(zx310000, zx300000, zx310000, zx300000)
new_takeWhile6(zx487, zx520, zx519) → new_takeWhile4(Integer(Neg(Succ(zx487))), Integer(zx519))
new_takeWhile16(zx487, zx488) → new_takeWhile6(zx487, new_primPlusInt13(Neg(Succ(zx488))), new_primPlusInt13(Neg(Succ(zx488))))
new_takeWhile14(zx487, zx488, Zero, Zero) → new_takeWhile16(zx487, zx488)

The TRS R consists of the following rules:

new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat1(Zero, x0)
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
QDP
                                                  ↳ Rewriting
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile14(zx487, zx488, Zero, Succ(zx4900)) → new_takeWhile6(zx487, new_primPlusInt13(Neg(Succ(zx488))), new_primPlusInt13(Neg(Succ(zx488))))
new_takeWhile14(zx487, zx488, Succ(zx4890), Succ(zx4900)) → new_takeWhile14(zx487, zx488, zx4890, zx4900)
new_takeWhile6(zx487, zx520, zx519) → new_takeWhile4(Integer(Neg(Succ(zx487))), Integer(zx519))
new_takeWhile4(Integer(Neg(Succ(zx310000))), Integer(Neg(Succ(zx300000)))) → new_takeWhile14(zx310000, zx300000, zx310000, zx300000)
new_takeWhile16(zx487, zx488) → new_takeWhile6(zx487, new_primPlusInt13(Neg(Succ(zx488))), new_primPlusInt13(Neg(Succ(zx488))))
new_takeWhile14(zx487, zx488, Zero, Zero) → new_takeWhile16(zx487, zx488)

The TRS R consists of the following rules:

new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusInt13(Pos(x0))
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile14(zx487, zx488, Zero, Succ(zx4900)) → new_takeWhile6(zx487, new_primPlusInt13(Neg(Succ(zx488))), new_primPlusInt13(Neg(Succ(zx488)))) at position [1] we obtained the following new rules:

new_takeWhile14(zx487, zx488, Zero, Succ(zx4900)) → new_takeWhile6(zx487, new_primMinusNat1(zx488), new_primPlusInt13(Neg(Succ(zx488))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
QDP
                                                      ↳ Rewriting
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile14(zx487, zx488, Succ(zx4890), Succ(zx4900)) → new_takeWhile14(zx487, zx488, zx4890, zx4900)
new_takeWhile4(Integer(Neg(Succ(zx310000))), Integer(Neg(Succ(zx300000)))) → new_takeWhile14(zx310000, zx300000, zx310000, zx300000)
new_takeWhile6(zx487, zx520, zx519) → new_takeWhile4(Integer(Neg(Succ(zx487))), Integer(zx519))
new_takeWhile16(zx487, zx488) → new_takeWhile6(zx487, new_primPlusInt13(Neg(Succ(zx488))), new_primPlusInt13(Neg(Succ(zx488))))
new_takeWhile14(zx487, zx488, Zero, Succ(zx4900)) → new_takeWhile6(zx487, new_primMinusNat1(zx488), new_primPlusInt13(Neg(Succ(zx488))))
new_takeWhile14(zx487, zx488, Zero, Zero) → new_takeWhile16(zx487, zx488)

The TRS R consists of the following rules:

new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusInt13(Pos(x0))
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile16(zx487, zx488) → new_takeWhile6(zx487, new_primPlusInt13(Neg(Succ(zx488))), new_primPlusInt13(Neg(Succ(zx488)))) at position [1] we obtained the following new rules:

new_takeWhile16(zx487, zx488) → new_takeWhile6(zx487, new_primMinusNat1(zx488), new_primPlusInt13(Neg(Succ(zx488))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
QDP
                                                          ↳ Rewriting
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile14(zx487, zx488, Succ(zx4890), Succ(zx4900)) → new_takeWhile14(zx487, zx488, zx4890, zx4900)
new_takeWhile6(zx487, zx520, zx519) → new_takeWhile4(Integer(Neg(Succ(zx487))), Integer(zx519))
new_takeWhile4(Integer(Neg(Succ(zx310000))), Integer(Neg(Succ(zx300000)))) → new_takeWhile14(zx310000, zx300000, zx310000, zx300000)
new_takeWhile14(zx487, zx488, Zero, Succ(zx4900)) → new_takeWhile6(zx487, new_primMinusNat1(zx488), new_primPlusInt13(Neg(Succ(zx488))))
new_takeWhile16(zx487, zx488) → new_takeWhile6(zx487, new_primMinusNat1(zx488), new_primPlusInt13(Neg(Succ(zx488))))
new_takeWhile14(zx487, zx488, Zero, Zero) → new_takeWhile16(zx487, zx488)

The TRS R consists of the following rules:

new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusInt13(Pos(x0))
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile14(zx487, zx488, Zero, Succ(zx4900)) → new_takeWhile6(zx487, new_primMinusNat1(zx488), new_primPlusInt13(Neg(Succ(zx488)))) at position [2] we obtained the following new rules:

new_takeWhile14(zx487, zx488, Zero, Succ(zx4900)) → new_takeWhile6(zx487, new_primMinusNat1(zx488), new_primMinusNat1(zx488))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
QDP
                                                              ↳ Rewriting
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile14(zx487, zx488, Zero, Succ(zx4900)) → new_takeWhile6(zx487, new_primMinusNat1(zx488), new_primMinusNat1(zx488))
new_takeWhile14(zx487, zx488, Succ(zx4890), Succ(zx4900)) → new_takeWhile14(zx487, zx488, zx4890, zx4900)
new_takeWhile4(Integer(Neg(Succ(zx310000))), Integer(Neg(Succ(zx300000)))) → new_takeWhile14(zx310000, zx300000, zx310000, zx300000)
new_takeWhile6(zx487, zx520, zx519) → new_takeWhile4(Integer(Neg(Succ(zx487))), Integer(zx519))
new_takeWhile14(zx487, zx488, Zero, Zero) → new_takeWhile16(zx487, zx488)
new_takeWhile16(zx487, zx488) → new_takeWhile6(zx487, new_primMinusNat1(zx488), new_primPlusInt13(Neg(Succ(zx488))))

The TRS R consists of the following rules:

new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusInt13(Pos(x0))
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile16(zx487, zx488) → new_takeWhile6(zx487, new_primMinusNat1(zx488), new_primPlusInt13(Neg(Succ(zx488)))) at position [2] we obtained the following new rules:

new_takeWhile16(zx487, zx488) → new_takeWhile6(zx487, new_primMinusNat1(zx488), new_primMinusNat1(zx488))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
QDP
                                                                  ↳ UsableRulesProof
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile16(zx487, zx488) → new_takeWhile6(zx487, new_primMinusNat1(zx488), new_primMinusNat1(zx488))
new_takeWhile14(zx487, zx488, Zero, Succ(zx4900)) → new_takeWhile6(zx487, new_primMinusNat1(zx488), new_primMinusNat1(zx488))
new_takeWhile14(zx487, zx488, Succ(zx4890), Succ(zx4900)) → new_takeWhile14(zx487, zx488, zx4890, zx4900)
new_takeWhile6(zx487, zx520, zx519) → new_takeWhile4(Integer(Neg(Succ(zx487))), Integer(zx519))
new_takeWhile4(Integer(Neg(Succ(zx310000))), Integer(Neg(Succ(zx300000)))) → new_takeWhile14(zx310000, zx300000, zx310000, zx300000)
new_takeWhile14(zx487, zx488, Zero, Zero) → new_takeWhile16(zx487, zx488)

The TRS R consists of the following rules:

new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusInt13(Pos(x0))
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ UsableRulesProof
QDP
                                                                      ↳ QReductionProof
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile16(zx487, zx488) → new_takeWhile6(zx487, new_primMinusNat1(zx488), new_primMinusNat1(zx488))
new_takeWhile14(zx487, zx488, Zero, Succ(zx4900)) → new_takeWhile6(zx487, new_primMinusNat1(zx488), new_primMinusNat1(zx488))
new_takeWhile14(zx487, zx488, Succ(zx4890), Succ(zx4900)) → new_takeWhile14(zx487, zx488, zx4890, zx4900)
new_takeWhile6(zx487, zx520, zx519) → new_takeWhile4(Integer(Neg(Succ(zx487))), Integer(zx519))
new_takeWhile4(Integer(Neg(Succ(zx310000))), Integer(Neg(Succ(zx300000)))) → new_takeWhile14(zx310000, zx300000, zx310000, zx300000)
new_takeWhile14(zx487, zx488, Zero, Zero) → new_takeWhile16(zx487, zx488)

The TRS R consists of the following rules:

new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusInt13(Pos(x0))
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusInt13(Pos(x0))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ UsableRulesProof
                                                                    ↳ QDP
                                                                      ↳ QReductionProof
QDP
                                                                          ↳ QDPOrderProof
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile16(zx487, zx488) → new_takeWhile6(zx487, new_primMinusNat1(zx488), new_primMinusNat1(zx488))
new_takeWhile14(zx487, zx488, Zero, Succ(zx4900)) → new_takeWhile6(zx487, new_primMinusNat1(zx488), new_primMinusNat1(zx488))
new_takeWhile14(zx487, zx488, Succ(zx4890), Succ(zx4900)) → new_takeWhile14(zx487, zx488, zx4890, zx4900)
new_takeWhile4(Integer(Neg(Succ(zx310000))), Integer(Neg(Succ(zx300000)))) → new_takeWhile14(zx310000, zx300000, zx310000, zx300000)
new_takeWhile6(zx487, zx520, zx519) → new_takeWhile4(Integer(Neg(Succ(zx487))), Integer(zx519))
new_takeWhile14(zx487, zx488, Zero, Zero) → new_takeWhile16(zx487, zx488)

The TRS R consists of the following rules:

new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


new_takeWhile6(zx487, zx520, zx519) → new_takeWhile4(Integer(Neg(Succ(zx487))), Integer(zx519))
The remaining pairs can at least be oriented weakly.

new_takeWhile16(zx487, zx488) → new_takeWhile6(zx487, new_primMinusNat1(zx488), new_primMinusNat1(zx488))
new_takeWhile14(zx487, zx488, Zero, Succ(zx4900)) → new_takeWhile6(zx487, new_primMinusNat1(zx488), new_primMinusNat1(zx488))
new_takeWhile14(zx487, zx488, Succ(zx4890), Succ(zx4900)) → new_takeWhile14(zx487, zx488, zx4890, zx4900)
new_takeWhile4(Integer(Neg(Succ(zx310000))), Integer(Neg(Succ(zx300000)))) → new_takeWhile14(zx310000, zx300000, zx310000, zx300000)
new_takeWhile14(zx487, zx488, Zero, Zero) → new_takeWhile16(zx487, zx488)
Used ordering: Polynomial interpretation [25]:

POL(Integer(x1)) = x1   
POL(Neg(x1)) = x1   
POL(Pos(x1)) = 0   
POL(Succ(x1)) = 1 + x1   
POL(Zero) = 0   
POL(new_primMinusNat1(x1)) = x1   
POL(new_takeWhile14(x1, x2, x3, x4)) = 1 + x2   
POL(new_takeWhile16(x1, x2)) = 1 + x2   
POL(new_takeWhile4(x1, x2)) = x2   
POL(new_takeWhile6(x1, x2, x3)) = 1 + x3   

The following usable rules [17] were oriented:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ UsableRulesProof
                                                                    ↳ QDP
                                                                      ↳ QReductionProof
                                                                        ↳ QDP
                                                                          ↳ QDPOrderProof
QDP
                                                                              ↳ DependencyGraphProof
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile16(zx487, zx488) → new_takeWhile6(zx487, new_primMinusNat1(zx488), new_primMinusNat1(zx488))
new_takeWhile14(zx487, zx488, Zero, Succ(zx4900)) → new_takeWhile6(zx487, new_primMinusNat1(zx488), new_primMinusNat1(zx488))
new_takeWhile14(zx487, zx488, Succ(zx4890), Succ(zx4900)) → new_takeWhile14(zx487, zx488, zx4890, zx4900)
new_takeWhile4(Integer(Neg(Succ(zx310000))), Integer(Neg(Succ(zx300000)))) → new_takeWhile14(zx310000, zx300000, zx310000, zx300000)
new_takeWhile14(zx487, zx488, Zero, Zero) → new_takeWhile16(zx487, zx488)

The TRS R consists of the following rules:

new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 4 less nodes.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ UsableRulesProof
                                                                    ↳ QDP
                                                                      ↳ QReductionProof
                                                                        ↳ QDP
                                                                          ↳ QDPOrderProof
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
QDP
                                                                                  ↳ UsableRulesProof
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile14(zx487, zx488, Succ(zx4890), Succ(zx4900)) → new_takeWhile14(zx487, zx488, zx4890, zx4900)

The TRS R consists of the following rules:

new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ UsableRulesProof
                                                                    ↳ QDP
                                                                      ↳ QReductionProof
                                                                        ↳ QDP
                                                                          ↳ QDPOrderProof
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
QDP
                                                                                      ↳ QReductionProof
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile14(zx487, zx488, Succ(zx4890), Succ(zx4900)) → new_takeWhile14(zx487, zx488, zx4890, zx4900)

R is empty.
The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ UsableRulesProof
                                            ↳ QDP
                                              ↳ QReductionProof
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ UsableRulesProof
                                                                    ↳ QDP
                                                                      ↳ QReductionProof
                                                                        ↳ QDP
                                                                          ↳ QDPOrderProof
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
                                                                                ↳ QDP
                                                                                  ↳ UsableRulesProof
                                                                                    ↳ QDP
                                                                                      ↳ QReductionProof
QDP
                                                                                          ↳ QDPSizeChangeProof
                                        ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile14(zx487, zx488, Succ(zx4890), Succ(zx4900)) → new_takeWhile14(zx487, zx488, zx4890, zx4900)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
QDP
                                          ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), new_primPlusInt13(Neg(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, new_primPlusInt13(Pos(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, new_primPlusInt13(Neg(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primPlusInt13(Neg(Succ(zx300000))), new_primPlusInt13(Neg(Succ(zx300000))))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), new_primPlusInt13(Pos(Succ(zx445))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), new_primPlusInt13(Pos(Succ(zx445))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), new_primPlusInt13(Pos(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), new_primPlusInt13(Neg(Zero)), new_primPlusInt13(Neg(Zero))) at position [1] we obtained the following new rules:

new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
QDP
                                              ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, new_primPlusInt13(Pos(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, new_primPlusInt13(Neg(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primPlusInt13(Neg(Succ(zx300000))), new_primPlusInt13(Neg(Succ(zx300000))))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), new_primPlusInt13(Pos(Succ(zx445))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), new_primPlusInt13(Pos(Succ(zx445))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), new_primPlusInt13(Pos(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, new_primPlusInt13(Pos(Zero)), new_primPlusInt13(Pos(Zero))) at position [1] we obtained the following new rules:

new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
QDP
                                                  ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, new_primPlusInt13(Neg(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primPlusInt13(Neg(Succ(zx300000))), new_primPlusInt13(Neg(Succ(zx300000))))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), new_primPlusInt13(Pos(Succ(zx445))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), new_primPlusInt13(Pos(Succ(zx445))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), new_primPlusInt13(Pos(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), new_primPlusInt13(Pos(Zero)), new_primPlusInt13(Pos(Zero))) at position [1] we obtained the following new rules:

new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
QDP
                                                      ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, new_primPlusInt13(Neg(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primPlusInt13(Neg(Succ(zx300000))), new_primPlusInt13(Neg(Succ(zx300000))))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), new_primPlusInt13(Pos(Succ(zx445))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), new_primPlusInt13(Pos(Succ(zx445))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, new_primPlusInt13(Neg(Zero)), new_primPlusInt13(Neg(Zero))) at position [1] we obtained the following new rules:

new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
QDP
                                                          ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primPlusInt13(Neg(Succ(zx300000))), new_primPlusInt13(Neg(Succ(zx300000))))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), new_primPlusInt13(Pos(Succ(zx445))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), new_primPlusInt13(Pos(Succ(zx445))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), new_primPlusInt13(Pos(Succ(zx445))), new_primPlusInt13(Pos(Succ(zx445)))) at position [1] we obtained the following new rules:

new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(new_primPlusNat1(Succ(zx445), Zero)), new_primPlusInt13(Pos(Succ(zx445))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
QDP
                                                              ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(new_primPlusNat1(Succ(zx445), Zero)), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primPlusInt13(Neg(Succ(zx300000))), new_primPlusInt13(Neg(Succ(zx300000))))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), new_primPlusInt13(Pos(Succ(zx445))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), new_primPlusInt13(Pos(Succ(zx445))), new_primPlusInt13(Pos(Succ(zx445)))) at position [1] we obtained the following new rules:

new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(new_primPlusNat1(Succ(zx445), Zero)), new_primPlusInt13(Pos(Succ(zx445))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
QDP
                                                                  ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(new_primPlusNat1(Succ(zx445), Zero)), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primPlusInt13(Neg(Succ(zx300000))), new_primPlusInt13(Neg(Succ(zx300000))))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(new_primPlusNat1(Succ(zx445), Zero)), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primPlusInt13(Neg(Succ(zx300000))), new_primPlusInt13(Neg(Succ(zx300000)))) at position [1] we obtained the following new rules:

new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primPlusInt13(Neg(Succ(zx300000))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
QDP
                                                                      ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(new_primPlusNat1(Succ(zx445), Zero)), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primPlusInt13(Neg(Succ(zx300000))))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(new_primPlusNat1(Succ(zx445), Zero)), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero))) at position [2] we obtained the following new rules:

new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
QDP
                                                                          ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(new_primPlusNat1(Succ(zx445), Zero)), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primPlusInt13(Neg(Succ(zx300000))))
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(new_primPlusNat1(Succ(zx445), Zero)), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero))) at position [1,0] we obtained the following new rules:

new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
QDP
                                                                              ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(new_primPlusNat1(Succ(zx445), Zero)), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primPlusInt13(Neg(Succ(zx300000))))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(new_primPlusNat1(Succ(zx445), Zero)), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(new_primPlusNat1(Zero, Zero)), new_primPlusInt13(Pos(Zero))) at position [1,0] we obtained the following new rules:

new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
QDP
                                                                                  ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(new_primPlusNat1(Succ(zx445), Zero)), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primPlusInt13(Neg(Succ(zx300000))))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(new_primPlusNat1(Succ(zx445), Zero)), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), new_primPlusInt13(Neg(Zero))) at position [2] we obtained the following new rules:

new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
QDP
                                                                                      ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(new_primPlusNat1(Succ(zx445), Zero)), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primPlusInt13(Neg(Succ(zx300000))))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(new_primPlusNat1(Succ(zx445), Zero)), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))

The TRS R consists of the following rules:

new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
QDP
                                                                                          ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(new_primPlusNat1(Succ(zx445), Zero)), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primPlusInt13(Neg(Succ(zx300000))))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(new_primPlusNat1(Succ(zx445), Zero)), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(new_primPlusNat1(Succ(zx445), Zero)), new_primPlusInt13(Pos(Succ(zx445)))) at position [1,0] we obtained the following new rules:

new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), new_primPlusInt13(Pos(Succ(zx445))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
QDP
                                                                                              ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primPlusInt13(Neg(Succ(zx300000))))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(new_primPlusNat1(Succ(zx445), Zero)), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))

The TRS R consists of the following rules:

new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(new_primPlusNat1(Succ(zx445), Zero)), new_primPlusInt13(Pos(Succ(zx445)))) at position [1,0] we obtained the following new rules:

new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), new_primPlusInt13(Pos(Succ(zx445))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
QDP
                                                                                                  ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primPlusInt13(Neg(Succ(zx300000))))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primPlusInt13(Neg(Succ(zx300000)))) at position [2] we obtained the following new rules:

new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
QDP
                                                                                                      ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))

The TRS R consists of the following rules:

new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
QDP
                                                                                                          ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero))) at position [2] we obtained the following new rules:

new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
QDP
                                                                                                              ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero)))
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))

The TRS R consists of the following rules:

new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), new_primPlusInt13(Pos(Zero))) at position [2] we obtained the following new rules:

new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
QDP
                                                                                                                  ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), new_primPlusInt13(Pos(Succ(zx445)))) at position [2] we obtained the following new rules:

new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(new_primPlusNat1(Succ(zx445), Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
QDP
                                                                                                                      ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(new_primPlusNat1(Succ(zx445), Zero)))
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), new_primPlusInt13(Pos(Succ(zx445))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))

The TRS R consists of the following rules:

new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), new_primPlusInt13(Pos(Succ(zx445)))) at position [2] we obtained the following new rules:

new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(new_primPlusNat1(Succ(zx445), Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
QDP
                                                                                                                          ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(new_primPlusNat1(Succ(zx445), Zero)))
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(new_primPlusNat1(Succ(zx445), Zero)))
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
QDP
                                                                                                                              ↳ QReductionProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(new_primPlusNat1(Succ(zx445), Zero)))
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(new_primPlusNat1(Succ(zx445), Zero)))
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusInt13(Pos(x0))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
QDP
                                                                                                                                  ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(new_primPlusNat1(Succ(zx445), Zero)))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(new_primPlusNat1(Succ(zx445), Zero)))

The TRS R consists of the following rules:

new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(new_primPlusNat1(Succ(zx445), Zero))) at position [2,0] we obtained the following new rules:

new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
QDP
                                                                                                                                      ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(new_primPlusNat1(Succ(zx445), Zero)))
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero))) at position [2,0] we obtained the following new rules:

new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
QDP
                                                                                                                                          ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero)))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(new_primPlusNat1(Succ(zx445), Zero)))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))

The TRS R consists of the following rules:

new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(new_primPlusNat1(Zero, Zero))) at position [2,0] we obtained the following new rules:

new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
QDP
                                                                                                                                              ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(new_primPlusNat1(Succ(zx445), Zero)))
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
QDP
                                                                                                                                                  ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(new_primPlusNat1(Succ(zx445), Zero)))

The TRS R consists of the following rules:

new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(new_primPlusNat1(Succ(zx445), Zero))) at position [2,0] we obtained the following new rules:

new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
QDP
                                                                                                                                                      ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))

The TRS R consists of the following rules:

new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
QDP
                                                                                                                                                          ↳ QReductionProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))

The TRS R consists of the following rules:

new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusNat1(Succ(x0), x1)
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_primPlusNat1(Zero, x0)
new_primPlusNat1(Succ(x0), x1)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
QDP
                                                                                                                                                              ↳ QDPOrderProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))

The TRS R consists of the following rules:

new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primMinusNat1(Succ(x0))
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


new_takeWhile4(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
The remaining pairs can at least be oriented weakly.

new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
Used ordering: Polynomial interpretation [25]:

POL(Integer(x1)) = x1   
POL(Neg(x1)) = 1   
POL(Pos(x1)) = 0   
POL(Succ(x1)) = 0   
POL(Zero) = 0   
POL(new_primMinusNat1(x1)) = 1   
POL(new_primPlusNat0(x1, x2)) = 1   
POL(new_takeWhile13(x1, x2, x3, x4)) = 0   
POL(new_takeWhile15(x1, x2)) = 0   
POL(new_takeWhile3(x1, x2, x3)) = x3   
POL(new_takeWhile4(x1, x2)) = x2   

The following usable rules [17] were oriented:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)
new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))

The TRS R consists of the following rules:

new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primMinusNat1(Succ(x0))
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


new_takeWhile4(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → new_takeWhile3(zx31000, new_primMinusNat1(zx300000), new_primMinusNat1(zx300000))
The remaining pairs can at least be oriented weakly.

new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)
Used ordering: Polynomial interpretation [25]:

POL(Integer(x1)) = x1   
POL(Neg(x1)) = x1   
POL(Pos(x1)) = 0   
POL(Succ(x1)) = 1 + x1   
POL(Zero) = 0   
POL(new_primMinusNat1(x1)) = x1   
POL(new_primPlusNat0(x1, x2)) = 0   
POL(new_takeWhile13(x1, x2, x3, x4)) = 0   
POL(new_takeWhile15(x1, x2)) = 0   
POL(new_takeWhile3(x1, x2, x3)) = x3   
POL(new_takeWhile4(x1, x2)) = x2   

The following usable rules [17] were oriented:

new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primMinusNat1(Zero) → Pos(Zero)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))

The TRS R consists of the following rules:

new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primMinusNat1(Succ(x0))
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
QDP
                                                                                                                                                                          ↳ QReductionProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))

The TRS R consists of the following rules:

new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)

The set Q consists of the following terms:

new_primMinusNat1(Zero)
new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primMinusNat1(Succ(x0))
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_primMinusNat1(Zero)
new_primMinusNat1(Succ(x0))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
QDP
                                                                                                                                                                              ↳ Instantiation
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By instantiating [15] the rule new_takeWhile3(zx31000, zx196, zx195) → new_takeWhile4(Integer(Pos(zx31000)), Integer(zx195)) we obtained the following new rules:

new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero))) → new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Succ(Zero))))
new_takeWhile3(Succ(z0), Pos(Succ(Zero)), Pos(Succ(Zero))) → new_takeWhile4(Integer(Pos(Succ(z0))), Integer(Pos(Succ(Zero))))
new_takeWhile3(Succ(z0), Pos(Succ(Succ(y_0))), Pos(Succ(Succ(y_1)))) → new_takeWhile4(Integer(Pos(Succ(z0))), Integer(Pos(Succ(Succ(y_1)))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero))) → new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Succ(Zero))))
new_takeWhile4(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_takeWhile3(Zero, Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile3(Succ(z0), Pos(Succ(Zero)), Pos(Succ(Zero))) → new_takeWhile4(Integer(Pos(Succ(z0))), Integer(Pos(Succ(Zero))))
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → new_takeWhile3(Succ(zx310000), Pos(Succ(Zero)), Pos(Succ(Zero)))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile3(Succ(z0), Pos(Succ(Succ(y_0))), Pos(Succ(Succ(y_1)))) → new_takeWhile4(Integer(Pos(Succ(z0))), Integer(Pos(Succ(Succ(y_1)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))

The TRS R consists of the following rules:

new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 4 less nodes.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
QDP
                                                                                                                                                                                      ↳ Instantiation
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000)
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile3(Succ(z0), Pos(Succ(Succ(y_0))), Pos(Succ(Succ(y_1)))) → new_takeWhile4(Integer(Pos(Succ(z0))), Integer(Pos(Succ(Succ(y_1)))))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By instantiating [15] the rule new_takeWhile4(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile13(zx310000, zx300000, zx300000, zx310000) we obtained the following new rules:

new_takeWhile4(Integer(Pos(Succ(z0))), Integer(Pos(Succ(Succ(z2))))) → new_takeWhile13(z0, Succ(z2), Succ(z2), z0)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470)
new_takeWhile4(Integer(Pos(Succ(z0))), Integer(Pos(Succ(Succ(z2))))) → new_takeWhile13(z0, Succ(z2), Succ(z2), z0)
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile3(Succ(z0), Pos(Succ(Succ(y_0))), Pos(Succ(Succ(y_1)))) → new_takeWhile4(Integer(Pos(Succ(z0))), Integer(Pos(Succ(Succ(y_1)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))

The TRS R consists of the following rules:

new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By forward instantiating [14] the rule new_takeWhile13(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile13(zx444, zx445, zx4460, zx4470) we obtained the following new rules:

new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Zero)) → new_takeWhile13(x0, x1, Zero, Zero)
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Zero)) → new_takeWhile13(x0, x1, Zero, Zero)
new_takeWhile4(Integer(Pos(Succ(z0))), Integer(Pos(Succ(Succ(z2))))) → new_takeWhile13(z0, Succ(z2), Succ(z2), z0)
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile3(Succ(z0), Pos(Succ(Succ(y_0))), Pos(Succ(Succ(y_1)))) → new_takeWhile4(Integer(Pos(Succ(z0))), Integer(Pos(Succ(Succ(y_1)))))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))

The TRS R consists of the following rules:

new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By forward instantiating [14] the rule new_takeWhile4(Integer(Pos(Succ(z0))), Integer(Pos(Succ(Succ(z2))))) → new_takeWhile13(z0, Succ(z2), Succ(z2), z0) we obtained the following new rules:

new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Zero), Succ(Zero), Succ(Zero), Succ(Zero))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Zero), Succ(Zero), Succ(Zero), Succ(Zero))
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Zero)) → new_takeWhile13(x0, x1, Zero, Zero)
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile3(Succ(z0), Pos(Succ(Succ(y_0))), Pos(Succ(Succ(y_1)))) → new_takeWhile4(Integer(Pos(Succ(z0))), Integer(Pos(Succ(Succ(y_1)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))

The TRS R consists of the following rules:

new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By forward instantiating [14] the rule new_takeWhile3(Succ(z0), Pos(Succ(Succ(y_0))), Pos(Succ(Succ(y_1)))) → new_takeWhile4(Integer(Pos(Succ(z0))), Integer(Pos(Succ(Succ(y_1))))) we obtained the following new rules:

new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Succ(y_1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Succ(y_1))))))
new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero)))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
QDP
                                                                                                                                                                                                      ↳ Narrowing
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Zero), Succ(Zero), Succ(Zero), Succ(Zero))
new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Succ(y_1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Succ(y_1))))))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Zero)) → new_takeWhile13(x0, x1, Zero, Zero)
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule new_takeWhile15(zx444, zx445) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero))))) at position [2,0,0,0] we obtained the following new rules:

new_takeWhile15(y0, Succ(x0)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(new_primPlusNat0(Succ(x0), Zero)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile15(y0, Zero) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(new_primPlusNat0(Zero, Zero)))), Pos(Succ(Succ(Zero))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ Narrowing
QDP
                                                                                                                                                                                                          ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile15(y0, Succ(x0)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(new_primPlusNat0(Succ(x0), Zero)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Zero), Succ(Zero), Succ(Zero), Succ(Zero))
new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Succ(y_1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Succ(y_1))))))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Zero)) → new_takeWhile13(x0, x1, Zero, Zero)
new_takeWhile15(y0, Zero) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(new_primPlusNat0(Zero, Zero)))), Pos(Succ(Succ(Zero))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile15(y0, Succ(x0)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(new_primPlusNat0(Succ(x0), Zero)))), Pos(Succ(Succ(Succ(x0))))) at position [1,0,0,0] we obtained the following new rules:

new_takeWhile15(y0, Succ(x0)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0)))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ Narrowing
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ Rewriting
QDP
                                                                                                                                                                                                              ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Zero), Succ(Zero), Succ(Zero), Succ(Zero))
new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Succ(y_1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Succ(y_1))))))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Zero)) → new_takeWhile13(x0, x1, Zero, Zero)
new_takeWhile15(y0, Succ(x0)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)
new_takeWhile15(y0, Zero) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(new_primPlusNat0(Zero, Zero)))), Pos(Succ(Succ(Zero))))

The TRS R consists of the following rules:

new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile15(y0, Zero) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(new_primPlusNat0(Zero, Zero)))), Pos(Succ(Succ(Zero)))) at position [1,0,0,0] we obtained the following new rules:

new_takeWhile15(y0, Zero) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ Narrowing
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Rewriting
QDP
                                                                                                                                                                                                                  ↳ Narrowing
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Zero), Succ(Zero), Succ(Zero), Succ(Zero))
new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Succ(y_1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Succ(y_1))))))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))
new_takeWhile15(y0, Zero) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Zero)) → new_takeWhile13(x0, x1, Zero, Zero)
new_takeWhile15(y0, Succ(x0)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule new_takeWhile13(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile3(Succ(zx444), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero)))), Pos(Succ(Succ(new_primPlusNat0(zx445, Zero))))) at position [2,0,0,0] we obtained the following new rules:

new_takeWhile13(y0, Zero, Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(new_primPlusNat0(Zero, Zero)))), Pos(Succ(Succ(Zero))))
new_takeWhile13(y0, Succ(x0), Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(new_primPlusNat0(Succ(x0), Zero)))), Pos(Succ(Succ(Succ(x0)))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ Narrowing
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ Narrowing
QDP
                                                                                                                                                                                                                      ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Zero), Succ(Zero), Succ(Zero), Succ(Zero))
new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Succ(y_1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Succ(y_1))))))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))
new_takeWhile15(y0, Zero) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(y0, Zero, Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(new_primPlusNat0(Zero, Zero)))), Pos(Succ(Succ(Zero))))
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Zero)) → new_takeWhile13(x0, x1, Zero, Zero)
new_takeWhile13(y0, Succ(x0), Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(new_primPlusNat0(Succ(x0), Zero)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile15(y0, Succ(x0)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile13(y0, Zero, Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(new_primPlusNat0(Zero, Zero)))), Pos(Succ(Succ(Zero)))) at position [1,0,0,0] we obtained the following new rules:

new_takeWhile13(y0, Zero, Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ Narrowing
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ Narrowing
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ Rewriting
QDP
                                                                                                                                                                                                                          ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Zero), Succ(Zero), Succ(Zero), Succ(Zero))
new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Succ(y_1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Succ(y_1))))))
new_takeWhile13(y0, Zero, Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))
new_takeWhile15(y0, Zero) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Zero)) → new_takeWhile13(x0, x1, Zero, Zero)
new_takeWhile15(y0, Succ(x0)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile13(y0, Succ(x0), Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(new_primPlusNat0(Succ(x0), Zero)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ Narrowing
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ Narrowing
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ UsableRulesProof
QDP
                                                                                                                                                                                                                              ↳ Rewriting
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Zero), Succ(Zero), Succ(Zero), Succ(Zero))
new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Succ(y_1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Succ(y_1))))))
new_takeWhile13(y0, Zero, Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))
new_takeWhile15(y0, Zero) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Zero)) → new_takeWhile13(x0, x1, Zero, Zero)
new_takeWhile15(y0, Succ(x0)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile13(y0, Succ(x0), Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(new_primPlusNat0(Succ(x0), Zero)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule new_takeWhile13(y0, Succ(x0), Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(new_primPlusNat0(Succ(x0), Zero)))), Pos(Succ(Succ(Succ(x0))))) at position [1,0,0,0] we obtained the following new rules:

new_takeWhile13(y0, Succ(x0), Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0)))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ Narrowing
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ Narrowing
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ Rewriting
QDP
                                                                                                                                                                                                                                  ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Zero), Succ(Zero), Succ(Zero), Succ(Zero))
new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Succ(y_1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Succ(y_1))))))
new_takeWhile13(y0, Succ(x0), Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile13(y0, Zero, Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))
new_takeWhile15(y0, Zero) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Zero)) → new_takeWhile13(x0, x1, Zero, Zero)
new_takeWhile15(y0, Succ(x0)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

The TRS R consists of the following rules:

new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)

The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ Narrowing
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ Narrowing
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ UsableRulesProof
QDP
                                                                                                                                                                                                                                      ↳ QReductionProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Zero), Succ(Zero), Succ(Zero), Succ(Zero))
new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Succ(y_1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Succ(y_1))))))
new_takeWhile13(y0, Succ(x0), Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile13(y0, Zero, Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))
new_takeWhile15(y0, Zero) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Zero)) → new_takeWhile13(x0, x1, Zero, Zero)
new_takeWhile15(y0, Succ(x0)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

R is empty.
The set Q consists of the following terms:

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat0(Succ(x0), Zero)

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

new_primPlusNat0(Zero, Succ(x0))
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusNat0(Succ(x0), Zero)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ Narrowing
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ Narrowing
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ QReductionProof
QDP
                                                                                                                                                                                                                                          ↳ Instantiation
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Zero), Succ(Zero), Succ(Zero), Succ(Zero))
new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Succ(y_1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Succ(y_1))))))
new_takeWhile13(y0, Succ(x0), Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile13(y0, Zero, Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))
new_takeWhile15(y0, Zero) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Zero)) → new_takeWhile13(x0, x1, Zero, Zero)
new_takeWhile15(y0, Succ(x0)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By instantiating [15] the rule new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Zero))))) we obtained the following new rules:

new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Zero)))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ Narrowing
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ Narrowing
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                          ↳ Instantiation
QDP
                                                                                                                                                                                                                                              ↳ Instantiation
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Zero), Succ(Zero), Succ(Zero), Succ(Zero))
new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Succ(y_1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Succ(y_1))))))
new_takeWhile13(y0, Succ(x0), Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile13(y0, Zero, Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))
new_takeWhile15(y0, Zero) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Zero)) → new_takeWhile13(x0, x1, Zero, Zero)
new_takeWhile15(y0, Succ(x0)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By instantiating [15] the rule new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Succ(y_1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_0))))), Integer(Pos(Succ(Succ(Succ(y_1)))))) we obtained the following new rules:

new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Succ(z1)))), Pos(Succ(Succ(Succ(z1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Succ(z1))))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ Narrowing
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ Narrowing
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                          ↳ Instantiation
                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                              ↳ Instantiation
QDP
                                                                                                                                                                                                                                                  ↳ Instantiation
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Zero), Succ(Zero), Succ(Zero), Succ(Zero))
new_takeWhile13(y0, Succ(x0), Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Succ(z1)))), Pos(Succ(Succ(Succ(z1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Succ(z1))))))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile13(y0, Zero, Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))
new_takeWhile15(y0, Zero) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Zero)) → new_takeWhile13(x0, x1, Zero, Zero)
new_takeWhile15(y0, Succ(x0)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By instantiating [15] the rule new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(x1))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero))))) we obtained the following new rules:

new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero)))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ Narrowing
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ Narrowing
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                          ↳ Instantiation
                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                  ↳ Instantiation
QDP
                                                                                                                                                                                                                                                      ↳ ForwardInstantiation
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Zero), Succ(Zero), Succ(Zero), Succ(Zero))
new_takeWhile13(y0, Succ(x0), Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile13(y0, Zero, Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Succ(z1)))), Pos(Succ(Succ(Succ(z1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Succ(z1))))))
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))
new_takeWhile15(y0, Zero) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Zero)) → new_takeWhile13(x0, x1, Zero, Zero)
new_takeWhile15(y0, Succ(x0)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By forward instantiating [14] the rule new_takeWhile13(y0, Succ(x0), Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0))))) we obtained the following new rules:

new_takeWhile13(Succ(Succ(y_0)), Succ(x1), Zero, Succ(x2)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Succ(x1)))), Pos(Succ(Succ(Succ(x1)))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ Narrowing
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ Narrowing
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                          ↳ Instantiation
                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                  ↳ Instantiation
                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                      ↳ ForwardInstantiation
QDP
                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Zero), Succ(Zero), Succ(Zero), Succ(Zero))
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Succ(z1)))), Pos(Succ(Succ(Succ(z1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Succ(z1))))))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile13(y0, Zero, Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(Succ(Succ(y_0)), Succ(x1), Zero, Succ(x2)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Succ(x1)))), Pos(Succ(Succ(Succ(x1)))))
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))
new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile15(y0, Zero) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Zero)) → new_takeWhile13(x0, x1, Zero, Zero)
new_takeWhile15(y0, Succ(x0)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By forward instantiating [14] the rule new_takeWhile13(y0, Zero, Zero, Succ(y2)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) we obtained the following new rules:

new_takeWhile13(Succ(Succ(y_0)), Zero, Zero, Succ(x1)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(Succ(Zero), Zero, Zero, Succ(x1)) → new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ Narrowing
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ Narrowing
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                          ↳ Instantiation
                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                  ↳ Instantiation
                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                      ↳ ForwardInstantiation
                                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
QDP
                                                                                                                                                                                                                                                              ↳ ForwardInstantiation
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Zero), Succ(Zero), Succ(Zero), Succ(Zero))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Succ(z1)))), Pos(Succ(Succ(Succ(z1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Succ(z1))))))
new_takeWhile13(Succ(Succ(y_0)), Succ(x1), Zero, Succ(x2)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Succ(x1)))), Pos(Succ(Succ(Succ(x1)))))
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(Succ(Zero), Zero, Zero, Succ(x1)) → new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))
new_takeWhile15(y0, Zero) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(Succ(Succ(y_0)), Zero, Zero, Succ(x1)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Zero)) → new_takeWhile13(x0, x1, Zero, Zero)
new_takeWhile15(y0, Succ(x0)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By forward instantiating [14] the rule new_takeWhile15(y0, Zero) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) we obtained the following new rules:

new_takeWhile15(Succ(Zero), Zero) → new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile15(Succ(Succ(y_0)), Zero) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ Narrowing
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ Narrowing
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                          ↳ Instantiation
                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                  ↳ Instantiation
                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                      ↳ ForwardInstantiation
                                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                                              ↳ ForwardInstantiation
QDP
                                                                                                                                                                                                                                                                  ↳ ForwardInstantiation
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile15(Succ(Zero), Zero) → new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Zero), Succ(Zero), Succ(Zero), Succ(Zero))
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Succ(z1)))), Pos(Succ(Succ(Succ(z1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Succ(z1))))))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile13(Succ(Succ(y_0)), Succ(x1), Zero, Succ(x2)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Succ(x1)))), Pos(Succ(Succ(Succ(x1)))))
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(Succ(Zero), Zero, Zero, Succ(x1)) → new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))
new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(Succ(Succ(y_0)), Zero, Zero, Succ(x1)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Zero)) → new_takeWhile13(x0, x1, Zero, Zero)
new_takeWhile15(y0, Succ(x0)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0)))))
new_takeWhile15(Succ(Succ(y_0)), Zero) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By forward instantiating [14] the rule new_takeWhile15(y0, Succ(x0)) → new_takeWhile3(Succ(y0), Pos(Succ(Succ(Succ(x0)))), Pos(Succ(Succ(Succ(x0))))) we obtained the following new rules:

new_takeWhile15(Succ(Succ(y_0)), Succ(x1)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Succ(x1)))), Pos(Succ(Succ(Succ(x1)))))



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ Narrowing
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ Narrowing
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                          ↳ Instantiation
                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                  ↳ Instantiation
                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                      ↳ ForwardInstantiation
                                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                                  ↳ ForwardInstantiation
QDP
                                                                                                                                                                                                                                                                      ↳ ForwardInstantiation
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile15(Succ(Zero), Zero) → new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Zero), Succ(Zero), Succ(Zero), Succ(Zero))
new_takeWhile15(Succ(Succ(y_0)), Succ(x1)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Succ(x1)))), Pos(Succ(Succ(Succ(x1)))))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Succ(z1)))), Pos(Succ(Succ(Succ(z1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Succ(z1))))))
new_takeWhile13(Succ(Succ(y_0)), Succ(x1), Zero, Succ(x2)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Succ(x1)))), Pos(Succ(Succ(Succ(x1)))))
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(Succ(Zero), Zero, Zero, Succ(x1)) → new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))
new_takeWhile13(Succ(Succ(y_0)), Zero, Zero, Succ(x1)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Zero)) → new_takeWhile13(x0, x1, Zero, Zero)
new_takeWhile15(Succ(Succ(y_0)), Zero) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By forward instantiating [14] the rule new_takeWhile13(zx444, zx445, Zero, Zero) → new_takeWhile15(zx444, zx445) we obtained the following new rules:

new_takeWhile13(Succ(Succ(y_0)), Succ(y_1), Zero, Zero) → new_takeWhile15(Succ(Succ(y_0)), Succ(y_1))
new_takeWhile13(Succ(Succ(y_0)), Zero, Zero, Zero) → new_takeWhile15(Succ(Succ(y_0)), Zero)
new_takeWhile13(Succ(Zero), Zero, Zero, Zero) → new_takeWhile15(Succ(Zero), Zero)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ Narrowing
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ Narrowing
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                          ↳ Instantiation
                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                  ↳ Instantiation
                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                      ↳ ForwardInstantiation
                                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                                      ↳ ForwardInstantiation
QDP
                                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile15(Succ(Zero), Zero) → new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Zero), Succ(Zero), Succ(Zero), Succ(Zero))
new_takeWhile15(Succ(Succ(y_0)), Succ(x1)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Succ(x1)))), Pos(Succ(Succ(Succ(x1)))))
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Succ(z1)))), Pos(Succ(Succ(Succ(z1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Succ(z1))))))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile13(Succ(Succ(y_0)), Succ(x1), Zero, Succ(x2)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Succ(x1)))), Pos(Succ(Succ(Succ(x1)))))
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(Succ(Zero), Zero, Zero, Succ(x1)) → new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))
new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(Succ(Succ(y_0)), Succ(y_1), Zero, Zero) → new_takeWhile15(Succ(Succ(y_0)), Succ(y_1))
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(Succ(Succ(y_0)), Zero, Zero, Succ(x1)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Zero)) → new_takeWhile13(x0, x1, Zero, Zero)
new_takeWhile13(Succ(Zero), Zero, Zero, Zero) → new_takeWhile15(Succ(Zero), Zero)
new_takeWhile13(Succ(Succ(y_0)), Zero, Zero, Zero) → new_takeWhile15(Succ(Succ(y_0)), Zero)
new_takeWhile15(Succ(Succ(y_0)), Zero) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By forward instantiating [14] the rule new_takeWhile13(x0, x1, Succ(Zero), Succ(Zero)) → new_takeWhile13(x0, x1, Zero, Zero) we obtained the following new rules:

new_takeWhile13(Succ(Succ(y_0)), Succ(y_1), Succ(Zero), Succ(Zero)) → new_takeWhile13(Succ(Succ(y_0)), Succ(y_1), Zero, Zero)
new_takeWhile13(Succ(Succ(y_0)), Zero, Succ(Zero), Succ(Zero)) → new_takeWhile13(Succ(Succ(y_0)), Zero, Zero, Zero)
new_takeWhile13(Succ(Zero), Zero, Succ(Zero), Succ(Zero)) → new_takeWhile13(Succ(Zero), Zero, Zero, Zero)



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ Narrowing
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ Narrowing
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                          ↳ Instantiation
                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                  ↳ Instantiation
                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                      ↳ ForwardInstantiation
                                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                                      ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
QDP
                                                                                                                                                                                                                                                                              ↳ DependencyGraphProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile15(Succ(Zero), Zero) → new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Zero), Succ(Zero), Succ(Zero), Succ(Zero))
new_takeWhile13(Succ(Succ(y_0)), Zero, Succ(Zero), Succ(Zero)) → new_takeWhile13(Succ(Succ(y_0)), Zero, Zero, Zero)
new_takeWhile15(Succ(Succ(y_0)), Succ(x1)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Succ(x1)))), Pos(Succ(Succ(Succ(x1)))))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Succ(z1)))), Pos(Succ(Succ(Succ(z1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Succ(z1))))))
new_takeWhile13(Succ(Succ(y_0)), Succ(x1), Zero, Succ(x2)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Succ(x1)))), Pos(Succ(Succ(Succ(x1)))))
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(Succ(Zero), Zero, Succ(Zero), Succ(Zero)) → new_takeWhile13(Succ(Zero), Zero, Zero, Zero)
new_takeWhile13(Succ(Zero), Zero, Zero, Succ(x1)) → new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile3(Succ(Succ(Zero)), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Zero)))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))
new_takeWhile13(Succ(Succ(y_0)), Succ(y_1), Succ(Zero), Succ(Zero)) → new_takeWhile13(Succ(Succ(y_0)), Succ(y_1), Zero, Zero)
new_takeWhile13(Succ(Succ(y_0)), Zero, Zero, Succ(x1)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(Succ(Succ(y_0)), Succ(y_1), Zero, Zero) → new_takeWhile15(Succ(Succ(y_0)), Succ(y_1))
new_takeWhile13(Succ(Succ(y_0)), Zero, Zero, Zero) → new_takeWhile15(Succ(Succ(y_0)), Zero)
new_takeWhile13(Succ(Zero), Zero, Zero, Zero) → new_takeWhile15(Succ(Zero), Zero)
new_takeWhile15(Succ(Succ(y_0)), Zero) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 6 less nodes.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ Narrowing
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ Narrowing
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                          ↳ Instantiation
                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                  ↳ Instantiation
                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                      ↳ ForwardInstantiation
                                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                                      ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                                                              ↳ DependencyGraphProof
QDP
                                                                                                                                                                                                                                                                                  ↳ QDPOrderProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile15(Succ(Succ(y_0)), Succ(x1)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Succ(x1)))), Pos(Succ(Succ(Succ(x1)))))
new_takeWhile13(Succ(Succ(y_0)), Zero, Succ(Zero), Succ(Zero)) → new_takeWhile13(Succ(Succ(y_0)), Zero, Zero, Zero)
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Succ(z1)))), Pos(Succ(Succ(Succ(z1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Succ(z1))))))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile13(Succ(Succ(y_0)), Succ(x1), Zero, Succ(x2)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Succ(x1)))), Pos(Succ(Succ(Succ(x1)))))
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))
new_takeWhile13(Succ(Succ(y_0)), Succ(y_1), Succ(Zero), Succ(Zero)) → new_takeWhile13(Succ(Succ(y_0)), Succ(y_1), Zero, Zero)
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(Succ(Succ(y_0)), Zero, Zero, Succ(x1)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(Succ(Succ(y_0)), Succ(y_1), Zero, Zero) → new_takeWhile15(Succ(Succ(y_0)), Succ(y_1))
new_takeWhile13(Succ(Succ(y_0)), Zero, Zero, Zero) → new_takeWhile15(Succ(Succ(y_0)), Zero)
new_takeWhile15(Succ(Succ(y_0)), Zero) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


new_takeWhile13(Succ(Succ(y_0)), Zero, Zero, Succ(x1)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(Succ(Succ(y_0)), Zero, Zero, Zero) → new_takeWhile15(Succ(Succ(y_0)), Zero)
The remaining pairs can at least be oriented weakly.

new_takeWhile15(Succ(Succ(y_0)), Succ(x1)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Succ(x1)))), Pos(Succ(Succ(Succ(x1)))))
new_takeWhile13(Succ(Succ(y_0)), Zero, Succ(Zero), Succ(Zero)) → new_takeWhile13(Succ(Succ(y_0)), Zero, Zero, Zero)
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Succ(z1)))), Pos(Succ(Succ(Succ(z1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Succ(z1))))))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile13(Succ(Succ(y_0)), Succ(x1), Zero, Succ(x2)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Succ(x1)))), Pos(Succ(Succ(Succ(x1)))))
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))
new_takeWhile13(Succ(Succ(y_0)), Succ(y_1), Succ(Zero), Succ(Zero)) → new_takeWhile13(Succ(Succ(y_0)), Succ(y_1), Zero, Zero)
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(Succ(Succ(y_0)), Succ(y_1), Zero, Zero) → new_takeWhile15(Succ(Succ(y_0)), Succ(y_1))
new_takeWhile15(Succ(Succ(y_0)), Zero) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
Used ordering: Polynomial interpretation [25]:

POL(Integer(x1)) = 0   
POL(Pos(x1)) = 0   
POL(Succ(x1)) = 0   
POL(Zero) = 1   
POL(new_takeWhile13(x1, x2, x3, x4)) = x2   
POL(new_takeWhile15(x1, x2)) = 0   
POL(new_takeWhile3(x1, x2, x3)) = 0   
POL(new_takeWhile4(x1, x2)) = 0   

The following usable rules [17] were oriented: none



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ Narrowing
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ Narrowing
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                          ↳ Instantiation
                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                  ↳ Instantiation
                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                      ↳ ForwardInstantiation
                                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                                      ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                                                              ↳ DependencyGraphProof
                                                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                                                  ↳ QDPOrderProof
QDP
                                                                                                                                                                                                                                                                                      ↳ DependencyGraphProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(Succ(Succ(y_0)), Succ(y_1), Succ(Zero), Succ(Zero)) → new_takeWhile13(Succ(Succ(y_0)), Succ(y_1), Zero, Zero)
new_takeWhile13(Succ(Succ(y_0)), Succ(y_1), Zero, Zero) → new_takeWhile15(Succ(Succ(y_0)), Succ(y_1))
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile13(Succ(Succ(y_0)), Zero, Succ(Zero), Succ(Zero)) → new_takeWhile13(Succ(Succ(y_0)), Zero, Zero, Zero)
new_takeWhile15(Succ(Succ(y_0)), Succ(x1)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Succ(x1)))), Pos(Succ(Succ(Succ(x1)))))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_2))))), Integer(Pos(Succ(Succ(Zero))))) → new_takeWhile13(Succ(Succ(y_2)), Succ(Zero), Succ(Zero), Succ(Succ(y_2)))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Succ(z1)))), Pos(Succ(Succ(Succ(z1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Succ(z1))))))
new_takeWhile15(Succ(Succ(y_0)), Zero) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero))))
new_takeWhile13(Succ(Succ(y_0)), Succ(x1), Zero, Succ(x2)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Succ(x1)))), Pos(Succ(Succ(Succ(x1)))))
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Zero))), Pos(Succ(Succ(Zero)))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Zero)))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 4 less nodes.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ DependencyGraphProof
                                      ↳ AND
                                        ↳ QDP
                                        ↳ QDP
                                        ↳ QDP
                                          ↳ Rewriting
                                            ↳ QDP
                                              ↳ Rewriting
                                                ↳ QDP
                                                  ↳ Rewriting
                                                    ↳ QDP
                                                      ↳ Rewriting
                                                        ↳ QDP
                                                          ↳ Rewriting
                                                            ↳ QDP
                                                              ↳ Rewriting
                                                                ↳ QDP
                                                                  ↳ Rewriting
                                                                    ↳ QDP
                                                                      ↳ Rewriting
                                                                        ↳ QDP
                                                                          ↳ Rewriting
                                                                            ↳ QDP
                                                                              ↳ Rewriting
                                                                                ↳ QDP
                                                                                  ↳ Rewriting
                                                                                    ↳ QDP
                                                                                      ↳ UsableRulesProof
                                                                                        ↳ QDP
                                                                                          ↳ Rewriting
                                                                                            ↳ QDP
                                                                                              ↳ Rewriting
                                                                                                ↳ QDP
                                                                                                  ↳ Rewriting
                                                                                                    ↳ QDP
                                                                                                      ↳ UsableRulesProof
                                                                                                        ↳ QDP
                                                                                                          ↳ Rewriting
                                                                                                            ↳ QDP
                                                                                                              ↳ Rewriting
                                                                                                                ↳ QDP
                                                                                                                  ↳ Rewriting
                                                                                                                    ↳ QDP
                                                                                                                      ↳ Rewriting
                                                                                                                        ↳ QDP
                                                                                                                          ↳ UsableRulesProof
                                                                                                                            ↳ QDP
                                                                                                                              ↳ QReductionProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ Rewriting
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ Rewriting
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ Rewriting
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ UsableRulesProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ Rewriting
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                                ↳ QDP
                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                    ↳ QDP
                                                                                                                                                                      ↳ UsableRulesProof
                                                                                                                                                                        ↳ QDP
                                                                                                                                                                          ↳ QReductionProof
                                                                                                                                                                            ↳ QDP
                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                  ↳ DependencyGraphProof
                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                      ↳ Instantiation
                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                      ↳ Narrowing
                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                          ↳ Rewriting
                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                  ↳ Narrowing
                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                      ↳ Rewriting
                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                          ↳ UsableRulesProof
                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                              ↳ Rewriting
                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                  ↳ UsableRulesProof
                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                      ↳ QReductionProof
                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                          ↳ Instantiation
                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                              ↳ Instantiation
                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                  ↳ Instantiation
                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                      ↳ ForwardInstantiation
                                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                                              ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                                  ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                                      ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                        ↳ QDP
                                                                                                                                                                                                                                                                          ↳ ForwardInstantiation
                                                                                                                                                                                                                                                                            ↳ QDP
                                                                                                                                                                                                                                                                              ↳ DependencyGraphProof
                                                                                                                                                                                                                                                                                ↳ QDP
                                                                                                                                                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                                                                                                                                                    ↳ QDP
                                                                                                                                                                                                                                                                                      ↳ DependencyGraphProof
QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_takeWhile13(Succ(Succ(y_0)), Succ(y_1), Succ(Zero), Succ(Zero)) → new_takeWhile13(Succ(Succ(y_0)), Succ(y_1), Zero, Zero)
new_takeWhile15(Succ(Succ(y_0)), Succ(x1)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Succ(x1)))), Pos(Succ(Succ(Succ(x1)))))
new_takeWhile13(Succ(Succ(y_0)), Succ(y_1), Zero, Zero) → new_takeWhile15(Succ(Succ(y_0)), Succ(y_1))
new_takeWhile13(x0, x1, Succ(Succ(y_2)), Succ(Succ(y_3))) → new_takeWhile13(x0, x1, Succ(y_2), Succ(y_3))
new_takeWhile4(Integer(Pos(Succ(Succ(Succ(y_3))))), Integer(Pos(Succ(Succ(Succ(y_2)))))) → new_takeWhile13(Succ(Succ(y_3)), Succ(Succ(y_2)), Succ(Succ(y_2)), Succ(Succ(y_3)))
new_takeWhile3(Succ(Succ(Succ(x0))), Pos(Succ(Succ(Succ(z1)))), Pos(Succ(Succ(Succ(z1))))) → new_takeWhile4(Integer(Pos(Succ(Succ(Succ(x0))))), Integer(Pos(Succ(Succ(Succ(z1))))))
new_takeWhile13(Succ(Succ(y_0)), Succ(x1), Zero, Succ(x2)) → new_takeWhile3(Succ(Succ(Succ(y_0))), Pos(Succ(Succ(Succ(x1)))), Pos(Succ(Succ(Succ(x1)))))
new_takeWhile13(x0, x1, Succ(Zero), Succ(Succ(y_2))) → new_takeWhile13(x0, x1, Zero, Succ(y_2))

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_range0(@2(zx400, zx401), @2(zx410, zx411), app(app(ty_@2, ea), eb), de) → new_range0(zx400, zx410, ea, eb)
new_foldr2(zx38, zx39, @2(zx400, zx401), @2(zx410, zx411), :(zx420, zx421), da, app(app(ty_@2, app(app(ty_@2, ea), eb)), de), dc) → new_range0(zx400, zx410, ea, eb)
new_foldr2(zx38, zx39, @2(zx400, zx401), @2(zx410, zx411), :(zx420, zx421), da, app(app(ty_@2, app(app(app(ty_@3, df), dg), dh)), de), dc) → new_range(zx400, zx410, df, dg, dh)
new_range0(@2(zx400, zx401), @2(zx410, zx411), app(app(app(ty_@3, df), dg), dh), de) → new_range(zx400, zx410, df, dg, dh)
new_foldr2(zx38, zx39, @3(zx400, zx401, zx402), @3(zx410, zx411, zx412), :(zx420, zx421), da, app(app(app(ty_@3, bh), ca), cb), dc) → new_foldr2(zx402, zx412, zx401, zx411, new_range1(zx400, zx410, bh), bh, ca, cb)
new_foldr2(zx38, zx39, @3(zx400, zx401, zx402), @3(zx410, zx411, zx412), :(zx420, zx421), da, app(app(app(ty_@3, app(app(app(ty_@3, cc), cd), ce)), ca), cb), dc) → new_range(zx400, zx410, cc, cd, ce)
new_range0(@2(zx400, zx401), @2(zx410, zx411), dd, de) → new_foldr1(zx401, zx411, new_range3(zx400, zx410, dd), dd, de)
new_range(@3(zx400, zx401, zx402), @3(zx410, zx411, zx412), app(app(ty_@2, cf), cg), ca, cb) → new_range0(zx400, zx410, cf, cg)
new_foldr2(zx38, zx39, zx40, zx41, :(zx420, zx421), da, db, dc) → new_foldr2(zx38, zx39, zx40, zx41, zx421, da, db, dc)
new_foldr1(zx47, zx48, :(zx490, zx491), ba, bg) → new_foldr1(zx47, zx48, zx491, ba, bg)
new_range(@3(zx400, zx401, zx402), @3(zx410, zx411, zx412), bh, ca, cb) → new_foldr2(zx402, zx412, zx401, zx411, new_range1(zx400, zx410, bh), bh, ca, cb)
new_range(@3(zx400, zx401, zx402), @3(zx410, zx411, zx412), app(app(app(ty_@3, cc), cd), ce), ca, cb) → new_range(zx400, zx410, cc, cd, ce)
new_foldr2(zx38, zx39, zx40, zx41, :(zx420, zx421), da, db, dc) → new_foldr3(zx420, zx38, zx39, new_range2(zx40, zx41, db), da, db, dc)
new_foldr3(zx101, zx102, zx103, :(zx1040, zx1041), ec, ed, ee) → new_foldr3(zx101, zx102, zx103, zx1041, ec, ed, ee)
new_foldr2(zx38, zx39, @2(zx400, zx401), @2(zx410, zx411), :(zx420, zx421), da, app(app(ty_@2, dd), de), dc) → new_foldr1(zx401, zx411, new_range3(zx400, zx410, dd), dd, de)
new_foldr3(zx101, zx102, zx103, :(zx1040, zx1041), ec, ed, app(app(ty_@2, fa), fb)) → new_range0(zx102, zx103, fa, fb)
new_foldr2(zx38, zx39, @3(zx400, zx401, zx402), @3(zx410, zx411, zx412), :(zx420, zx421), da, app(app(app(ty_@3, app(app(ty_@2, cf), cg)), ca), cb), dc) → new_range0(zx400, zx410, cf, cg)
new_foldr3(zx101, zx102, zx103, :(zx1040, zx1041), ec, ed, app(app(app(ty_@3, ef), eg), eh)) → new_range(zx102, zx103, ef, eg, eh)
new_foldr1(zx47, zx48, :(zx490, zx491), ba, app(app(app(ty_@3, bb), bc), bd)) → new_range(zx47, zx48, bb, bc, bd)
new_foldr1(zx47, zx48, :(zx490, zx491), ba, app(app(ty_@2, be), bf)) → new_range0(zx47, zx48, be, bf)

The TRS R consists of the following rules:

new_foldr9(zx109, [], fc, fd) → new_foldr10(fc, fd)
new_takeWhile112(zx444, zx445) → :(Integer(Pos(Succ(zx445))), new_takeWhile9(Succ(zx444), new_primPlusInt13(Pos(Succ(zx445))), new_primPlusInt13(Pos(Succ(zx445)))))
new_range13(zx47, zx48, ty_Integer) → new_range8(zx47, zx48)
new_range3(zx400, zx410, ty_@0) → new_range4(zx400, zx410)
new_primIntToChar(Neg(Succ(zx30000))) → error([])
new_range5(zx102, zx103, ty_Int) → new_range10(zx102, zx103)
new_takeWhile7(Pos(Succ(zx31000)), Pos(Zero)) → :(Pos(Zero), new_takeWhile21(Succ(zx31000), new_ps0, new_ps0))
new_psPs2(:(zx1260, zx1261), zx89, ba, bg) → :(zx1260, new_psPs2(zx1261, zx89, ba, bg))
new_range11(LT, GT) → :(LT, :(EQ, :(GT, new_foldr7)))
new_range3(zx400, zx410, app(app(app(ty_@3, df), dg), dh)) → new_range6(zx400, zx410, df, dg, dh)
new_foldr4(zx101, zx102, zx103, :(zx1040, zx1041), ec, ed, ee) → new_psPs1(new_foldr5(zx101, zx1040, new_range5(zx102, zx103, ee), ec, ed, ee), new_foldr4(zx101, zx102, zx103, zx1041, ec, ed, ee), ec, ed, ee)
new_range3(zx400, zx410, ty_Ordering) → new_range11(zx400, zx410)
new_foldr8(zx38, zx39, zx40, zx41, :(zx420, zx421), da, db, dc) → new_psPs1(new_foldr4(zx420, zx38, zx39, new_range2(zx40, zx41, db), da, db, dc), new_foldr8(zx38, zx39, zx40, zx41, zx421, da, db, dc), da, db, dc)
new_range12(True, True) → :(True, new_foldr12)
new_foldr5(zx144, zx145, [], ff, fg, fh) → new_foldr6(ff, fg, fh)
new_map0(:(zx300, zx301)) → :(new_primIntToChar(zx300), new_map0(zx301))
new_takeWhile8(Integer(Neg(zx31000)), Integer(Pos(Succ(zx300000)))) → []
new_range3(zx400, zx410, ty_Bool) → new_range12(zx400, zx410)
new_foldr11(zx47, zx48, [], ba, bg) → new_foldr10(ba, bg)
new_range2(zx40, zx41, ty_Int) → new_range10(zx40, zx41)
new_range13(zx47, zx48, ty_Ordering) → new_range11(zx47, zx48)
new_ps(zx3000) → new_primPlusInt13(Pos(Succ(zx3000)))
new_range11(LT, EQ) → :(LT, :(EQ, new_foldr7))
new_range5(zx102, zx103, ty_Bool) → new_range12(zx102, zx103)
new_range13(zx47, zx48, app(app(ty_@2, be), bf)) → new_range7(zx47, zx48, be, bf)
new_takeWhile19(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile112(zx444, zx445)
new_range1(zx400, zx410, ty_Bool) → new_range12(zx400, zx410)
new_foldr7[]
new_takeWhile113(zx435, zx436, zx437, Succ(zx4380), Zero) → []
new_takeWhile19(zx444, zx445, Succ(zx4460), Zero) → []
new_foldr5(zx144, zx145, :(zx1460, zx1461), ff, fg, fh) → new_psPs1(:(@3(zx144, zx145, zx1460), []), new_foldr5(zx144, zx145, zx1461, ff, fg, fh), ff, fg, fh)
new_takeWhile8(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → :(Integer(Neg(Succ(zx300000))), new_takeWhile20(new_primPlusInt13(Neg(Succ(zx300000))), new_primPlusInt13(Neg(Succ(zx300000)))))
new_takeWhile22(zx173, zx172) → new_takeWhile7(Neg(Zero), zx172)
new_takeWhile7(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile110(zx31000, zx30000, new_ps(zx30000), zx30000, zx31000)
new_takeWhile19(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile19(zx444, zx445, zx4460, zx4470)
new_range12(False, False) → :(False, new_foldr12)
new_range13(zx47, zx48, ty_Int) → new_range10(zx47, zx48)
new_takeWhile18(zx487, zx488) → :(Integer(Neg(Succ(zx488))), new_takeWhile23(zx487, new_primPlusInt13(Neg(Succ(zx488))), new_primPlusInt13(Neg(Succ(zx488)))))
new_range1(zx400, zx410, ty_Char) → new_range9(zx400, zx410)
new_primIntToChar(Pos(zx3000)) → Char(zx3000)
new_range11(GT, LT) → new_foldr7
new_range13(zx47, zx48, ty_Char) → new_range9(zx47, zx48)
new_takeWhile7(Pos(Zero), Pos(Succ(zx30000))) → []
new_range2(zx40, zx41, ty_Char) → new_range9(zx40, zx41)
new_range11(GT, EQ) → new_psPs3
new_range2(zx40, zx41, app(app(app(ty_@3, bh), ca), cb)) → new_range6(zx40, zx41, bh, ca, cb)
new_foldr10(ba, bg) → []
new_range1(zx400, zx410, ty_Int) → new_range10(zx400, zx410)
new_takeWhile113(zx435, zx436, zx437, Succ(zx4380), Succ(zx4390)) → new_takeWhile113(zx435, zx436, zx437, zx4380, zx4390)
new_range9(zx300, zx310) → new_map0(new_enumFromTo(new_fromEnum(zx300), new_fromEnum(zx310)))
new_range11(EQ, EQ) → :(EQ, new_foldr7)
new_takeWhile8(Integer(Neg(Zero)), Integer(Pos(Zero))) → :(Integer(Pos(Zero)), new_takeWhile20(new_primPlusInt13(Pos(Zero)), new_primPlusInt13(Pos(Zero))))
new_range6(@3(zx400, zx401, zx402), @3(zx410, zx411, zx412), bh, ca, cb) → new_foldr8(zx402, zx412, zx401, zx411, new_range1(zx400, zx410, bh), bh, ca, cb)
new_range11(EQ, GT) → :(EQ, :(GT, new_foldr7))
new_takeWhile8(Integer(Neg(Succ(zx310000))), Integer(Neg(Zero))) → []
new_takeWhile114(zx435, zx436, zx437) → :(Neg(Succ(zx436)), new_takeWhile7(Neg(Succ(zx435)), zx437))
new_takeWhile17(zx487, zx488, Succ(zx4890), Succ(zx4900)) → new_takeWhile17(zx487, zx488, zx4890, zx4900)
new_range2(zx40, zx41, ty_Bool) → new_range12(zx40, zx41)
new_takeWhile8(Integer(Neg(Succ(zx310000))), Integer(Pos(Zero))) → []
new_range3(zx400, zx410, ty_Integer) → new_range8(zx400, zx410)
new_takeWhile7(Pos(Succ(zx31000)), Neg(Zero)) → :(Neg(Zero), new_takeWhile21(Succ(zx31000), new_ps2, new_ps2))
new_takeWhile8(Integer(Neg(Succ(zx310000))), Integer(Neg(Succ(zx300000)))) → new_takeWhile17(zx310000, zx300000, zx310000, zx300000)
new_takeWhile7(Neg(Succ(zx31000)), Neg(Zero)) → []
new_foldr9(zx109, :(zx1100, zx1101), fc, fd) → new_psPs2(:(@2(zx109, zx1100), []), new_foldr9(zx109, zx1101, fc, fd), fc, fd)
new_takeWhile8(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → :(Integer(Neg(Succ(zx300000))), new_takeWhile9(zx31000, new_primPlusInt13(Neg(Succ(zx300000))), new_primPlusInt13(Neg(Succ(zx300000)))))
new_psPs3new_foldr7
new_range3(zx400, zx410, app(app(ty_@2, ea), eb)) → new_range7(zx400, zx410, ea, eb)
new_psPs2([], zx89, ba, bg) → zx89
new_takeWhile7(Pos(Zero), Neg(Zero)) → :(Neg(Zero), new_takeWhile21(Zero, new_ps2, new_ps2))
new_range5(zx102, zx103, ty_Integer) → new_range8(zx102, zx103)
new_range2(zx40, zx41, ty_Ordering) → new_range11(zx40, zx41)
new_enumFromTo(zx300, zx310) → new_takeWhile7(zx310, zx300)
new_takeWhile7(Neg(Zero), Neg(Zero)) → :(Neg(Zero), new_takeWhile22(new_ps2, new_ps2))
new_takeWhile111(zx429, zx430, zx431) → :(Pos(Succ(zx430)), new_takeWhile21(Succ(zx429), zx431, zx431))
new_takeWhile7(Neg(Succ(zx31000)), Pos(Zero)) → []
new_foldr11(zx47, zx48, :(zx490, zx491), ba, bg) → new_psPs2(new_foldr9(zx490, new_range13(zx47, zx48, bg), ba, bg), new_foldr11(zx47, zx48, zx491, ba, bg), ba, bg)
new_foldr4(zx101, zx102, zx103, [], ec, ed, ee) → new_foldr6(ec, ed, ee)
new_range1(zx400, zx410, ty_Integer) → new_range8(zx400, zx410)
new_takeWhile9(zx31000, zx196, zx195) → new_takeWhile8(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile7(Neg(zx3100), Pos(Succ(zx30000))) → []
new_range12(False, True) → :(False, :(True, new_foldr12))
new_range2(zx40, zx41, app(app(ty_@2, dd), de)) → new_range7(zx40, zx41, dd, de)
new_range2(zx40, zx41, ty_Integer) → new_range8(zx40, zx41)
new_range3(zx400, zx410, ty_Char) → new_range9(zx400, zx410)
new_range5(zx102, zx103, app(app(ty_@2, fa), fb)) → new_range7(zx102, zx103, fa, fb)
new_ps0new_primPlusInt13(Pos(Zero))
new_takeWhile8(Integer(Pos(Zero)), Integer(Pos(Succ(zx300000)))) → []
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_takeWhile7(Pos(Zero), Pos(Zero)) → :(Pos(Zero), new_takeWhile21(Zero, new_ps0, new_ps0))
new_foldr12[]
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_range3(zx400, zx410, ty_Int) → new_range10(zx400, zx410)
new_range1(zx400, zx410, ty_@0) → new_range4(zx400, zx410)
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_takeWhile8(Integer(Pos(Zero)), Integer(Neg(Zero))) → :(Integer(Neg(Zero)), new_takeWhile9(Zero, new_primPlusInt13(Neg(Zero)), new_primPlusInt13(Neg(Zero))))
new_takeWhile7(Neg(Zero), Neg(Succ(zx30000))) → :(Neg(Succ(zx30000)), new_takeWhile22(new_ps1(zx30000), new_ps1(zx30000)))
new_takeWhile8(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile19(zx310000, zx300000, zx300000, zx310000)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_takeWhile17(zx487, zx488, Zero, Succ(zx4900)) → new_takeWhile18(zx487, zx488)
new_takeWhile110(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile110(zx429, zx430, zx431, zx4320, zx4330)
new_range1(zx400, zx410, app(app(ty_@2, cf), cg)) → new_range7(zx400, zx410, cf, cg)
new_psPs1([], zx88, da, db, dc) → zx88
new_psPs1(:(zx1050, zx1051), zx88, da, db, dc) → :(zx1050, new_psPs1(zx1051, zx88, da, db, dc))
new_primIntToChar(Neg(Zero)) → Char(Zero)
new_range5(zx102, zx103, ty_Char) → new_range9(zx102, zx103)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_takeWhile113(zx435, zx436, zx437, Zero, Succ(zx4390)) → new_takeWhile114(zx435, zx436, zx437)
new_range1(zx400, zx410, ty_Ordering) → new_range11(zx400, zx410)
new_range2(zx40, zx41, ty_@0) → new_range4(zx40, zx41)
new_takeWhile17(zx487, zx488, Succ(zx4890), Zero) → []
new_range8(zx300, zx310) → new_takeWhile8(zx310, zx300)
new_range7(@2(zx400, zx401), @2(zx410, zx411), dd, de) → new_foldr11(zx401, zx411, new_range3(zx400, zx410, dd), dd, de)
new_range1(zx400, zx410, app(app(app(ty_@3, cc), cd), ce)) → new_range6(zx400, zx410, cc, cd, ce)
new_takeWhile17(zx487, zx488, Zero, Zero) → new_takeWhile18(zx487, zx488)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_takeWhile7(Neg(Succ(zx31000)), Neg(Succ(zx30000))) → new_takeWhile113(zx31000, zx30000, new_ps1(zx30000), zx31000, zx30000)
new_range4(@0, @0) → :(@0, [])
new_takeWhile8(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → :(Integer(Pos(Zero)), new_takeWhile9(Succ(zx310000), new_primPlusInt13(Pos(Zero)), new_primPlusInt13(Pos(Zero))))
new_foldr8(zx38, zx39, zx40, zx41, [], da, db, dc) → new_foldr6(da, db, dc)
new_range11(GT, GT) → :(GT, new_foldr7)
new_fromEnum(Char(zx3000)) → Pos(zx3000)
new_takeWhile8(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → :(Integer(Neg(Zero)), new_takeWhile9(Succ(zx310000), new_primPlusInt13(Neg(Zero)), new_primPlusInt13(Neg(Zero))))
new_range5(zx102, zx103, app(app(app(ty_@3, ef), eg), eh)) → new_range6(zx102, zx103, ef, eg, eh)
new_takeWhile113(zx435, zx436, zx437, Zero, Zero) → new_takeWhile114(zx435, zx436, zx437)
new_primMinusNat1(Zero) → Pos(Zero)
new_takeWhile110(zx429, zx430, zx431, Succ(zx4320), Zero) → []
new_takeWhile8(Integer(Neg(Zero)), Integer(Neg(Zero))) → :(Integer(Neg(Zero)), new_takeWhile20(new_primPlusInt13(Neg(Zero)), new_primPlusInt13(Neg(Zero))))
new_takeWhile19(zx444, zx445, Zero, Zero) → new_takeWhile112(zx444, zx445)
new_takeWhile20(zx212, zx211) → new_takeWhile8(Integer(Neg(Zero)), Integer(zx211))
new_takeWhile110(zx429, zx430, zx431, Zero, Zero) → new_takeWhile111(zx429, zx430, zx431)
new_takeWhile110(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile111(zx429, zx430, zx431)
new_foldr6(da, db, dc) → []
new_range13(zx47, zx48, app(app(app(ty_@3, bb), bc), bd)) → new_range6(zx47, zx48, bb, bc, bd)
new_range13(zx47, zx48, ty_Bool) → new_range12(zx47, zx48)
new_takeWhile8(Integer(Pos(Zero)), Integer(Pos(Zero))) → :(Integer(Pos(Zero)), new_takeWhile9(Zero, new_primPlusInt13(Pos(Zero)), new_primPlusInt13(Pos(Zero))))
new_range10(zx300, zx310) → new_enumFromTo(zx300, zx310)
new_takeWhile21(zx3100, zx166, zx165) → new_takeWhile7(Pos(zx3100), zx165)
new_range12(True, False) → new_foldr12
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_takeWhile7(Pos(zx3100), Neg(Succ(zx30000))) → :(Neg(Succ(zx30000)), new_takeWhile21(zx3100, new_ps1(zx30000), new_ps1(zx30000)))
new_takeWhile23(zx487, zx520, zx519) → new_takeWhile8(Integer(Neg(Succ(zx487))), Integer(zx519))
new_takeWhile7(Neg(Zero), Pos(Zero)) → :(Pos(Zero), new_takeWhile22(new_ps0, new_ps0))
new_range5(zx102, zx103, ty_Ordering) → new_range11(zx102, zx103)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_range5(zx102, zx103, ty_@0) → new_range4(zx102, zx103)
new_range11(LT, LT) → :(LT, new_foldr7)
new_map0([]) → []
new_ps2new_primPlusInt13(Neg(Zero))
new_range13(zx47, zx48, ty_@0) → new_range4(zx47, zx48)
new_range11(EQ, LT) → new_foldr7
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_range3(x0, x1, ty_Integer)
new_takeWhile22(x0, x1)
new_takeWhile8(Integer(Neg(Zero)), Integer(Neg(Zero)))
new_psPs2([], x0, x1, x2)
new_range13(x0, x1, ty_Ordering)
new_foldr8(x0, x1, x2, x3, :(x4, x5), x6, x7, x8)
new_foldr12
new_range2(x0, x1, ty_Char)
new_range7(@2(x0, x1), @2(x2, x3), x4, x5)
new_takeWhile17(x0, x1, Succ(x2), Zero)
new_takeWhile113(x0, x1, x2, Succ(x3), Succ(x4))
new_takeWhile8(Integer(Pos(Succ(x0))), Integer(Pos(Zero)))
new_primIntToChar(Neg(Succ(x0)))
new_ps1(x0)
new_range13(x0, x1, ty_Bool)
new_range1(x0, x1, app(app(app(ty_@3, x2), x3), x4))
new_psPs1([], x0, x1, x2, x3)
new_range11(GT, LT)
new_range11(LT, GT)
new_takeWhile8(Integer(Neg(x0)), Integer(Pos(Succ(x1))))
new_takeWhile8(Integer(Pos(x0)), Integer(Neg(Succ(x1))))
new_foldr4(x0, x1, x2, :(x3, x4), x5, x6, x7)
new_takeWhile7(Pos(Zero), Pos(Zero))
new_range1(x0, x1, ty_Integer)
new_takeWhile110(x0, x1, x2, Zero, Succ(x3))
new_takeWhile110(x0, x1, x2, Succ(x3), Zero)
new_takeWhile8(Integer(Neg(Succ(x0))), Integer(Neg(Zero)))
new_takeWhile23(x0, x1, x2)
new_takeWhile7(Pos(Succ(x0)), Pos(Succ(x1)))
new_takeWhile7(Neg(Zero), Neg(Succ(x0)))
new_takeWhile8(Integer(Neg(Zero)), Integer(Neg(Succ(x0))))
new_primPlusNat1(Zero, x0)
new_takeWhile7(Neg(Zero), Neg(Zero))
new_takeWhile110(x0, x1, x2, Zero, Zero)
new_range13(x0, x1, ty_@0)
new_takeWhile7(Pos(Succ(x0)), Neg(Zero))
new_takeWhile7(Neg(Succ(x0)), Pos(Zero))
new_takeWhile7(Neg(Succ(x0)), Neg(Zero))
new_ps0
new_takeWhile19(x0, x1, Zero, Succ(x2))
new_primPlusInt13(Neg(Succ(x0)))
new_enumFromTo(x0, x1)
new_takeWhile7(Pos(x0), Neg(Succ(x1)))
new_takeWhile17(x0, x1, Succ(x2), Succ(x3))
new_takeWhile7(Neg(x0), Pos(Succ(x1)))
new_takeWhile113(x0, x1, x2, Succ(x3), Zero)
new_range12(True, True)
new_range3(x0, x1, ty_Char)
new_range13(x0, x1, app(app(ty_@2, x2), x3))
new_primMinusNat1(Zero)
new_takeWhile110(x0, x1, x2, Succ(x3), Succ(x4))
new_range11(GT, GT)
new_range5(x0, x1, ty_Bool)
new_range11(EQ, EQ)
new_range13(x0, x1, app(app(app(ty_@3, x2), x3), x4))
new_range3(x0, x1, app(app(app(ty_@3, x2), x3), x4))
new_map0(:(x0, x1))
new_takeWhile111(x0, x1, x2)
new_takeWhile7(Pos(Zero), Pos(Succ(x0)))
new_foldr11(x0, x1, [], x2, x3)
new_takeWhile113(x0, x1, x2, Zero, Zero)
new_takeWhile112(x0, x1)
new_range11(GT, EQ)
new_range1(x0, x1, ty_Bool)
new_range11(EQ, GT)
new_range6(@3(x0, x1, x2), @3(x3, x4, x5), x6, x7, x8)
new_range11(EQ, LT)
new_range11(LT, EQ)
new_primPlusNat0(Succ(x0), Zero)
new_range8(x0, x1)
new_range5(x0, x1, ty_Integer)
new_range12(True, False)
new_range12(False, True)
new_range9(x0, x1)
new_range5(x0, x1, app(app(ty_@2, x2), x3))
new_primPlusInt13(Pos(x0))
new_primPlusNat0(Succ(x0), Succ(x1))
new_primMinusNat1(Succ(x0))
new_range3(x0, x1, ty_Bool)
new_range1(x0, x1, app(app(ty_@2, x2), x3))
new_foldr9(x0, :(x1, x2), x3, x4)
new_takeWhile17(x0, x1, Zero, Zero)
new_range5(x0, x1, ty_Char)
new_range11(LT, LT)
new_foldr7
new_takeWhile19(x0, x1, Zero, Zero)
new_primIntToChar(Pos(x0))
new_range10(x0, x1)
new_primPlusInt13(Neg(Zero))
new_primPlusNat1(Succ(x0), x1)
new_takeWhile17(x0, x1, Zero, Succ(x2))
new_range3(x0, x1, app(app(ty_@2, x2), x3))
new_range2(x0, x1, ty_Ordering)
new_takeWhile7(Pos(Succ(x0)), Pos(Zero))
new_takeWhile18(x0, x1)
new_primIntToChar(Neg(Zero))
new_takeWhile19(x0, x1, Succ(x2), Succ(x3))
new_range4(@0, @0)
new_foldr4(x0, x1, x2, [], x3, x4, x5)
new_range2(x0, x1, app(app(ty_@2, x2), x3))
new_ps(x0)
new_range1(x0, x1, ty_Char)
new_foldr5(x0, x1, :(x2, x3), x4, x5, x6)
new_takeWhile114(x0, x1, x2)
new_map0([])
new_takeWhile113(x0, x1, x2, Zero, Succ(x3))
new_range2(x0, x1, ty_Bool)
new_range1(x0, x1, ty_Ordering)
new_primPlusNat0(Zero, Zero)
new_ps2
new_foldr5(x0, x1, [], x2, x3, x4)
new_range5(x0, x1, app(app(app(ty_@3, x2), x3), x4))
new_foldr11(x0, x1, :(x2, x3), x4, x5)
new_range5(x0, x1, ty_@0)
new_psPs2(:(x0, x1), x2, x3, x4)
new_primPlusNat0(Zero, Succ(x0))
new_takeWhile9(x0, x1, x2)
new_takeWhile8(Integer(Neg(Zero)), Integer(Pos(Zero)))
new_takeWhile8(Integer(Pos(Zero)), Integer(Neg(Zero)))
new_foldr8(x0, x1, x2, x3, [], x4, x5, x6)
new_foldr6(x0, x1, x2)
new_range13(x0, x1, ty_Int)
new_takeWhile20(x0, x1)
new_range1(x0, x1, ty_@0)
new_foldr10(x0, x1)
new_range2(x0, x1, ty_Integer)
new_range2(x0, x1, ty_Int)
new_psPs3
new_takeWhile8(Integer(Pos(Zero)), Integer(Pos(Succ(x0))))
new_takeWhile8(Integer(Pos(Succ(x0))), Integer(Neg(Zero)))
new_range13(x0, x1, ty_Char)
new_takeWhile8(Integer(Neg(Succ(x0))), Integer(Pos(Zero)))
new_range5(x0, x1, ty_Int)
new_takeWhile21(x0, x1, x2)
new_takeWhile8(Integer(Pos(Succ(x0))), Integer(Pos(Succ(x1))))
new_takeWhile7(Neg(Succ(x0)), Neg(Succ(x1)))
new_takeWhile8(Integer(Neg(Succ(x0))), Integer(Neg(Succ(x1))))
new_takeWhile7(Neg(Zero), Pos(Zero))
new_range2(x0, x1, app(app(app(ty_@3, x2), x3), x4))
new_takeWhile7(Pos(Zero), Neg(Zero))
new_range5(x0, x1, ty_Ordering)
new_range12(False, False)
new_psPs1(:(x0, x1), x2, x3, x4, x5)
new_takeWhile8(Integer(Pos(Zero)), Integer(Pos(Zero)))
new_foldr9(x0, [], x1, x2)
new_range13(x0, x1, ty_Integer)
new_range1(x0, x1, ty_Int)
new_range2(x0, x1, ty_@0)
new_takeWhile19(x0, x1, Succ(x2), Zero)
new_range3(x0, x1, ty_@0)
new_fromEnum(Char(x0))
new_range3(x0, x1, ty_Int)
new_range3(x0, x1, ty_Ordering)

We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_range14(@3(zx3000, zx3001, zx3002), @3(zx3100, zx3101, zx3102), app(app(app(ty_@3, ba), bb), bc), bd, be) → new_range14(zx3000, zx3100, ba, bb, bc)
new_range15(@2(zx3000, zx3001), @2(zx3100, zx3101), app(app(ty_@2, cd), ce), cc) → new_range15(zx3000, zx3100, cd, ce)
new_range14(@3(zx3000, zx3001, zx3002), @3(zx3100, zx3101, zx3102), app(app(ty_@2, bf), bg), bd, be) → new_range15(zx3000, zx3100, bf, bg)
new_range15(@2(zx3000, zx3001), @2(zx3100, zx3101), app(app(app(ty_@3, bh), ca), cb), cc) → new_range14(zx3000, zx3100, bh, ca, cb)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_dsEm1(zx698, zx37811) → new_enforceWHNF1(zx698, zx698, zx37811)
new_enforceWHNF1(zx690, zx689, :(zx37810, zx37811)) → new_dsEm1(new_primPlusInt14(zx689, zx37810), zx37811)

The TRS R consists of the following rules:

new_primPlusInt14(Pos(zx4600), True) → new_primPlusInt2(zx4600)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt14(Neg(zx4600), False) → new_primPlusInt13(Neg(zx4600))
new_primMinusNat0(Zero, Zero) → Pos(Zero)
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat0(Zero, Succ(zx15800)) → Neg(Succ(zx15800))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primPlusInt2(zx4590) → new_primPlusInt3(zx4590)
new_primPlusInt1(zx4740) → new_primMinusNat0(Zero, zx4740)
new_primPlusInt4(zx4590) → new_primPlusInt0(zx4590)
new_primPlusInt3(zx4590) → new_primPlusInt5(zx4590)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt5(zx4740) → Pos(new_primPlusNat0(zx4740, Zero))
new_primMinusNat0(Succ(zx160000), Zero) → Pos(Succ(zx160000))
new_primPlusInt0(zx4590) → new_primPlusInt1(zx4590)
new_primPlusInt14(Neg(zx4600), True) → new_primPlusInt4(zx4600)
new_primPlusInt14(Pos(zx4600), False) → new_primPlusInt13(Pos(zx4600))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat0(Succ(zx160000), Succ(zx15800)) → new_primMinusNat0(zx160000, zx15800)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusInt2(x0)
new_primPlusInt4(x0)
new_primPlusNat1(Succ(x0), x1)
new_primMinusNat0(Succ(x0), Succ(x1))
new_primPlusInt0(x0)
new_primPlusInt14(Neg(x0), False)
new_primPlusInt14(Neg(x0), True)
new_primPlusInt14(Pos(x0), False)
new_primMinusNat1(Zero)
new_primMinusNat0(Succ(x0), Zero)
new_primPlusInt1(x0)
new_primPlusInt14(Pos(x0), True)
new_primMinusNat0(Zero, Zero)
new_primPlusInt3(x0)
new_primMinusNat0(Zero, Succ(x0))
new_primPlusNat0(Succ(x0), Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusInt5(x0)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ UsableRulesProof
QDP
                                        ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_dsEm1(zx698, zx37811) → new_enforceWHNF1(zx698, zx698, zx37811)
new_enforceWHNF1(zx690, zx689, :(zx37810, zx37811)) → new_dsEm1(new_primPlusInt14(zx689, zx37810), zx37811)

The TRS R consists of the following rules:

new_primPlusInt14(Pos(zx4600), True) → new_primPlusInt2(zx4600)
new_primPlusInt14(Neg(zx4600), False) → new_primPlusInt13(Neg(zx4600))
new_primPlusInt14(Neg(zx4600), True) → new_primPlusInt4(zx4600)
new_primPlusInt14(Pos(zx4600), False) → new_primPlusInt13(Pos(zx4600))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusInt4(zx4590) → new_primPlusInt0(zx4590)
new_primPlusInt0(zx4590) → new_primPlusInt1(zx4590)
new_primPlusInt1(zx4740) → new_primMinusNat0(Zero, zx4740)
new_primMinusNat0(Zero, Zero) → Pos(Zero)
new_primMinusNat0(Zero, Succ(zx15800)) → Neg(Succ(zx15800))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt2(zx4590) → new_primPlusInt3(zx4590)
new_primPlusInt3(zx4590) → new_primPlusInt5(zx4590)
new_primPlusInt5(zx4740) → Pos(new_primPlusNat0(zx4740, Zero))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusInt2(x0)
new_primPlusInt4(x0)
new_primPlusNat1(Succ(x0), x1)
new_primMinusNat0(Succ(x0), Succ(x1))
new_primPlusInt0(x0)
new_primPlusInt14(Neg(x0), False)
new_primPlusInt14(Neg(x0), True)
new_primPlusInt14(Pos(x0), False)
new_primMinusNat1(Zero)
new_primMinusNat0(Succ(x0), Zero)
new_primPlusInt1(x0)
new_primPlusInt14(Pos(x0), True)
new_primMinusNat0(Zero, Zero)
new_primPlusInt3(x0)
new_primMinusNat0(Zero, Succ(x0))
new_primPlusNat0(Succ(x0), Zero)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusInt5(x0)

We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_dsEm2(zx679, zx36211) → new_enforceWHNF2(zx679, zx679, zx36211)
new_enforceWHNF2(zx672, zx671, :(zx36210, zx36211)) → new_dsEm2(new_primPlusInt15(zx671, zx36210), zx36211)

The TRS R consists of the following rules:

new_primPlusInt15(Pos(zx4560), GT) → new_primPlusInt9(zx4560)
new_primPlusInt16(zx4550) → new_primPlusInt13(Neg(zx4550))
new_primPlusInt15(Neg(zx4560), EQ) → new_primPlusInt16(zx4560)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusInt15(Neg(zx4560), GT) → new_primPlusInt8(zx4560)
new_primMinusNat0(Zero, Zero) → Pos(Zero)
new_primPlusInt15(Neg(zx4560), LT) → new_primPlusInt16(zx4560)
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusInt15(Pos(zx4560), EQ) → new_primPlusInt17(zx4560)
new_primMinusNat0(Zero, Succ(zx15800)) → Neg(Succ(zx15800))
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primPlusInt12(zx4740) → new_primPlusInt5(zx4740)
new_primPlusInt1(zx4740) → new_primMinusNat0(Zero, zx4740)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusInt15(Pos(zx4560), LT) → new_primPlusInt17(zx4560)
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusInt8(zx4740) → new_primPlusInt7(zx4740)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt9(zx4740) → new_primPlusInt12(zx4740)
new_primPlusInt5(zx4740) → Pos(new_primPlusNat0(zx4740, Zero))
new_primMinusNat0(Succ(zx160000), Zero) → Pos(Succ(zx160000))
new_primPlusInt17(zx4550) → new_primPlusInt13(Pos(zx4550))
new_primPlusInt7(zx4740) → new_primPlusInt1(zx4740)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primMinusNat0(Succ(zx160000), Succ(zx15800)) → new_primMinusNat0(zx160000, zx15800)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusInt15(Neg(x0), GT)
new_primMinusNat0(Succ(x0), Succ(x1))
new_primPlusNat1(Succ(x0), x1)
new_primPlusInt7(x0)
new_primPlusInt17(x0)
new_primMinusNat1(Zero)
new_primPlusInt15(Pos(x0), EQ)
new_primMinusNat0(Succ(x0), Zero)
new_primPlusInt1(x0)
new_primMinusNat0(Zero, Zero)
new_primPlusInt15(Pos(x0), GT)
new_primMinusNat0(Zero, Succ(x0))
new_primPlusInt9(x0)
new_primPlusInt16(x0)
new_primPlusNat0(Succ(x0), Zero)
new_primPlusInt15(Pos(x0), LT)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primPlusInt12(x0)
new_primPlusInt15(Neg(x0), LT)
new_primMinusNat1(Succ(x0))
new_primPlusInt15(Neg(x0), EQ)
new_primPlusInt5(x0)
new_primPlusInt8(x0)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ UsableRulesProof
QDP
                                        ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_dsEm2(zx679, zx36211) → new_enforceWHNF2(zx679, zx679, zx36211)
new_enforceWHNF2(zx672, zx671, :(zx36210, zx36211)) → new_dsEm2(new_primPlusInt15(zx671, zx36210), zx36211)

The TRS R consists of the following rules:

new_primPlusInt15(Pos(zx4560), GT) → new_primPlusInt9(zx4560)
new_primPlusInt15(Neg(zx4560), EQ) → new_primPlusInt16(zx4560)
new_primPlusInt15(Neg(zx4560), GT) → new_primPlusInt8(zx4560)
new_primPlusInt15(Neg(zx4560), LT) → new_primPlusInt16(zx4560)
new_primPlusInt15(Pos(zx4560), EQ) → new_primPlusInt17(zx4560)
new_primPlusInt15(Pos(zx4560), LT) → new_primPlusInt17(zx4560)
new_primPlusInt17(zx4550) → new_primPlusInt13(Pos(zx4550))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusInt16(zx4550) → new_primPlusInt13(Neg(zx4550))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt8(zx4740) → new_primPlusInt7(zx4740)
new_primPlusInt7(zx4740) → new_primPlusInt1(zx4740)
new_primPlusInt1(zx4740) → new_primMinusNat0(Zero, zx4740)
new_primMinusNat0(Zero, Zero) → Pos(Zero)
new_primMinusNat0(Zero, Succ(zx15800)) → Neg(Succ(zx15800))
new_primPlusInt9(zx4740) → new_primPlusInt12(zx4740)
new_primPlusInt12(zx4740) → new_primPlusInt5(zx4740)
new_primPlusInt5(zx4740) → Pos(new_primPlusNat0(zx4740, Zero))

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusInt15(Neg(x0), GT)
new_primMinusNat0(Succ(x0), Succ(x1))
new_primPlusNat1(Succ(x0), x1)
new_primPlusInt7(x0)
new_primPlusInt17(x0)
new_primMinusNat1(Zero)
new_primPlusInt15(Pos(x0), EQ)
new_primMinusNat0(Succ(x0), Zero)
new_primPlusInt1(x0)
new_primMinusNat0(Zero, Zero)
new_primPlusInt15(Pos(x0), GT)
new_primMinusNat0(Zero, Succ(x0))
new_primPlusInt9(x0)
new_primPlusInt16(x0)
new_primPlusNat0(Succ(x0), Zero)
new_primPlusInt15(Pos(x0), LT)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusNat1(Zero, x0)
new_primPlusInt12(x0)
new_primPlusInt15(Neg(x0), LT)
new_primMinusNat1(Succ(x0))
new_primPlusInt15(Neg(x0), EQ)
new_primPlusInt5(x0)
new_primPlusInt8(x0)

We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ UsableRulesProof
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_enforceWHNF3(zx668, zx667, :(zx36110, zx36111)) → new_dsEm3(new_primPlusInt18(zx667, zx36110), zx36111)
new_dsEm3(zx676, zx36111) → new_enforceWHNF3(zx676, zx676, zx36111)

The TRS R consists of the following rules:

new_primPlusInt16(zx4550) → new_primPlusInt13(Neg(zx4550))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primMinusNat0(Zero, Zero) → Pos(Zero)
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusInt18(Pos(zx4550), EQ) → new_primPlusInt9(zx4550)
new_primMinusNat0(Zero, Succ(zx15800)) → Neg(Succ(zx15800))
new_primPlusInt18(Neg(zx4550), EQ) → new_primPlusInt8(zx4550)
new_primMinusNat1(Zero) → Pos(Zero)
new_primPlusInt10(zx4740) → new_primPlusInt12(zx4740)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primPlusInt18(Neg(zx4550), LT) → new_primPlusInt16(zx4550)
new_primPlusInt12(zx4740) → new_primPlusInt5(zx4740)
new_primPlusInt1(zx4740) → new_primMinusNat0(Zero, zx4740)
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusInt8(zx4740) → new_primPlusInt7(zx4740)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt9(zx4740) → new_primPlusInt12(zx4740)
new_primPlusInt18(Pos(zx4550), GT) → new_primPlusInt10(zx4550)
new_primPlusInt5(zx4740) → Pos(new_primPlusNat0(zx4740, Zero))
new_primMinusNat0(Succ(zx160000), Zero) → Pos(Succ(zx160000))
new_primPlusInt17(zx4550) → new_primPlusInt13(Pos(zx4550))
new_primPlusInt18(Pos(zx4550), LT) → new_primPlusInt17(zx4550)
new_primPlusInt7(zx4740) → new_primPlusInt1(zx4740)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusInt11(zx4740) → new_primPlusInt7(zx4740)
new_primMinusNat0(Succ(zx160000), Succ(zx15800)) → new_primMinusNat0(zx160000, zx15800)
new_primPlusInt18(Neg(zx4550), GT) → new_primPlusInt11(zx4550)
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt18(Neg(x0), LT)
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusInt18(Pos(x0), GT)
new_primPlusInt11(x0)
new_primMinusNat0(Succ(x0), Succ(x1))
new_primPlusNat1(Succ(x0), x1)
new_primPlusInt7(x0)
new_primPlusInt17(x0)
new_primMinusNat1(Zero)
new_primPlusInt10(x0)
new_primPlusInt18(Neg(x0), EQ)
new_primMinusNat0(Succ(x0), Zero)
new_primPlusInt1(x0)
new_primMinusNat0(Zero, Zero)
new_primMinusNat0(Zero, Succ(x0))
new_primPlusInt9(x0)
new_primPlusInt16(x0)
new_primPlusNat0(Succ(x0), Zero)
new_primPlusInt18(Pos(x0), EQ)
new_primPlusInt18(Pos(x0), LT)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusInt12(x0)
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusInt18(Neg(x0), GT)
new_primPlusInt5(x0)
new_primPlusInt8(x0)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                    ↳ UsableRulesProof
QDP
                                        ↳ QDPSizeChangeProof
                                  ↳ QDP
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_enforceWHNF3(zx668, zx667, :(zx36110, zx36111)) → new_dsEm3(new_primPlusInt18(zx667, zx36110), zx36111)
new_dsEm3(zx676, zx36111) → new_enforceWHNF3(zx676, zx676, zx36111)

The TRS R consists of the following rules:

new_primPlusInt18(Pos(zx4550), EQ) → new_primPlusInt9(zx4550)
new_primPlusInt18(Neg(zx4550), EQ) → new_primPlusInt8(zx4550)
new_primPlusInt18(Neg(zx4550), LT) → new_primPlusInt16(zx4550)
new_primPlusInt18(Pos(zx4550), GT) → new_primPlusInt10(zx4550)
new_primPlusInt18(Pos(zx4550), LT) → new_primPlusInt17(zx4550)
new_primPlusInt18(Neg(zx4550), GT) → new_primPlusInt11(zx4550)
new_primPlusInt11(zx4740) → new_primPlusInt7(zx4740)
new_primPlusInt7(zx4740) → new_primPlusInt1(zx4740)
new_primPlusInt1(zx4740) → new_primMinusNat0(Zero, zx4740)
new_primMinusNat0(Zero, Zero) → Pos(Zero)
new_primMinusNat0(Zero, Succ(zx15800)) → Neg(Succ(zx15800))
new_primPlusInt17(zx4550) → new_primPlusInt13(Pos(zx4550))
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_primPlusNat0(Zero, Zero) → Zero
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusInt10(zx4740) → new_primPlusInt12(zx4740)
new_primPlusInt12(zx4740) → new_primPlusInt5(zx4740)
new_primPlusInt5(zx4740) → Pos(new_primPlusNat0(zx4740, Zero))
new_primPlusInt16(zx4550) → new_primPlusInt13(Neg(zx4550))
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_primMinusNat1(Zero) → Pos(Zero)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_primPlusInt8(zx4740) → new_primPlusInt7(zx4740)
new_primPlusInt9(zx4740) → new_primPlusInt12(zx4740)

The set Q consists of the following terms:

new_primPlusInt13(Neg(Zero))
new_primPlusInt18(Neg(x0), LT)
new_primPlusInt13(Neg(Succ(x0)))
new_primPlusNat0(Zero, Succ(x0))
new_primPlusInt18(Pos(x0), GT)
new_primPlusInt11(x0)
new_primMinusNat0(Succ(x0), Succ(x1))
new_primPlusNat1(Succ(x0), x1)
new_primPlusInt7(x0)
new_primPlusInt17(x0)
new_primMinusNat1(Zero)
new_primPlusInt10(x0)
new_primPlusInt18(Neg(x0), EQ)
new_primMinusNat0(Succ(x0), Zero)
new_primPlusInt1(x0)
new_primMinusNat0(Zero, Zero)
new_primMinusNat0(Zero, Succ(x0))
new_primPlusInt9(x0)
new_primPlusInt16(x0)
new_primPlusNat0(Succ(x0), Zero)
new_primPlusInt18(Pos(x0), EQ)
new_primPlusInt18(Pos(x0), LT)
new_primPlusNat0(Zero, Zero)
new_primPlusNat0(Succ(x0), Succ(x1))
new_primPlusInt13(Pos(x0))
new_primPlusInt12(x0)
new_primPlusNat1(Zero, x0)
new_primMinusNat1(Succ(x0))
new_primPlusInt18(Neg(x0), GT)
new_primPlusInt5(x0)
new_primPlusInt8(x0)

We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                                  ↳ QDP
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_rangeSize1(zx385, zx386, Succ(zx3870), Succ(zx3880)) → new_rangeSize1(zx385, zx386, zx3870, zx3880)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ HASKELL
  ↳ LR
    ↳ HASKELL
      ↳ CR
        ↳ HASKELL
          ↳ IFR
            ↳ HASKELL
              ↳ BR
                ↳ HASKELL
                  ↳ COR
                    ↳ HASKELL
                      ↳ LetRed
                        ↳ HASKELL
                          ↳ NumRed
                            ↳ HASKELL
                              ↳ Narrow
                                ↳ AND
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
                                  ↳ QDP
QDP
                                    ↳ QDPSizeChangeProof
                              ↳ Narrow

Q DP problem:
The TRS P consists of the following rules:

new_rangeSize12(zx62, zx63, zx64, zx65, zx66, zx67, be, bf, bg) → new_ps5(zx63, zx66, zx62, zx65, bf, be)
new_rangeSize14(zx81, zx82, zx83, zx84, :(zx950, zx951), zx87, app(app(app(ty_@3, fg), fh), ga), ef, eg, eh) → new_index2(zx81, zx83, fg, fh, ga)
new_primPlusInt19(Neg(zx1360), zx137, zx138, zx139, app(app(app(ty_@3, cg), da), db)) → new_rangeSize(@2(zx137, zx138), cg, da, db)
new_rangeSize12(zx62, zx63, zx64, zx65, zx66, zx67, be, bf, bg) → new_primPlusInt19(new_index(zx64, zx67, bg), zx64, zx67, new_ps3(zx63, zx66, zx62, zx65, bf, be), bg)
new_rangeSize15(zx81, zx82, zx83, zx84, ee, app(app(ty_@2, fd), ff)) → new_index3(zx82, zx84, fd, ff)
new_rangeSize0(@2(@2(zx300, zx301), @2(zx310, zx311)), dh, ea) → new_rangeSize13(zx300, zx301, zx310, zx311, new_range18(zx300, zx310, dh), dh, ea, dh)
new_ps4(zx64, zx67, zx63, zx66, zx62, zx65, bg, bf, be) → new_primPlusInt19(new_index(zx64, zx67, bg), zx64, zx67, new_ps3(zx63, zx66, zx62, zx65, bf, be), bg)
new_primPlusInt19(Pos(zx1360), zx137, zx138, zx139, app(app(ty_@2, dc), dd)) → new_rangeSize0(@2(zx137, zx138), dc, dd)
new_ps5(zx82, zx84, zx81, zx83, app(app(app(ty_@3, fa), fb), fc), ee) → new_index2(zx82, zx84, fa, fb, fc)
new_rangeSize11(zx62, zx63, zx64, zx65, zx66, zx67, :(zx900, zx901), zx70, be, bf, bg, bh, ca) → new_ps5(zx63, zx66, zx62, zx65, bf, be)
new_rangeSize11(zx62, zx63, @2(zx640, zx641), zx65, zx66, @2(zx670, zx671), :(zx900, zx901), zx70, be, bf, app(app(ty_@2, ce), cf), bh, ca) → new_ps5(zx641, zx671, zx640, zx670, cf, ce)
new_primPlusInt19(Pos(zx1360), zx137, zx138, zx139, app(app(app(ty_@3, cg), da), db)) → new_rangeSize(@2(zx137, zx138), cg, da, db)
new_rangeSize11(zx62, zx63, zx64, zx65, zx66, zx67, [], :(zx700, zx701), be, bf, bg, bh, ca) → new_rangeSize12(zx62, zx63, zx64, zx65, zx66, zx67, be, bf, bg)
new_rangeSize12(zx62, zx63, @3(zx640, zx641, zx642), zx65, zx66, @3(zx670, zx671, zx672), be, bf, app(app(app(ty_@3, cb), cc), cd)) → new_ps4(zx642, zx672, zx641, zx671, zx640, zx670, cd, cc, cb)
new_rangeSize14(zx81, zx82, zx83, zx84, :(zx950, zx951), zx87, ee, ef, eg, eh) → new_primPlusInt19(new_index0(zx82, zx84, ef), zx82, zx84, new_index1(zx81, zx83, ee), ef)
new_primPlusInt19(Neg(zx1360), zx137, zx138, zx139, app(app(ty_@2, dc), dd)) → new_rangeSize0(@2(zx137, zx138), dc, dd)
new_index3(@2(zx640, zx641), @2(zx670, zx671), ce, cf) → new_ps5(zx641, zx671, zx640, zx670, cf, ce)
new_rangeSize15(zx81, zx82, zx83, zx84, app(app(ty_@2, gb), gc), ef) → new_index3(zx81, zx83, gb, gc)
new_rangeSize11(zx62, zx63, zx64, zx65, zx66, zx67, :(zx900, zx901), zx70, be, bf, bg, bh, ca) → new_primPlusInt19(new_index(zx64, zx67, bg), zx64, zx67, new_ps3(zx63, zx66, zx62, zx65, bf, be), bg)
new_rangeSize10(zx12, zx13, zx14, zx15, zx16, zx17, :(zx180, zx181), ba, bb, bc, bd) → new_rangeSize11(zx12, zx13, zx14, zx15, zx16, zx17, new_foldr4(zx180, zx14, zx17, new_range16(zx13, zx16, bb), bd, bb, bc), new_foldr8(zx14, zx17, zx13, zx16, zx181, bd, bb, bc), ba, bb, bc, bd, bb)
new_rangeSize14(zx81, zx82, zx83, zx84, :(zx950, zx951), zx87, ee, app(app(ty_@2, fd), ff), eg, eh) → new_index3(zx82, zx84, fd, ff)
new_rangeSize11(zx62, zx63, @3(zx640, zx641, zx642), zx65, zx66, @3(zx670, zx671, zx672), :(zx900, zx901), zx70, be, bf, app(app(app(ty_@3, cb), cc), cd), bh, ca) → new_ps4(zx642, zx672, zx641, zx671, zx640, zx670, cd, cc, cb)
new_rangeSize15(zx81, zx82, zx83, zx84, ee, app(app(app(ty_@3, fa), fb), fc)) → new_index2(zx82, zx84, fa, fb, fc)
new_ps5(zx82, zx84, zx81, zx83, ef, ee) → new_primPlusInt19(new_index0(zx82, zx84, ef), zx82, zx84, new_index1(zx81, zx83, ee), ef)
new_rangeSize(@2(@3(zx300, zx301, zx302), @3(zx310, zx311, zx312)), de, df, dg) → new_rangeSize10(zx300, zx301, zx302, zx310, zx311, zx312, new_range17(zx300, zx310, de), de, df, dg, de)
new_index2(@3(zx640, zx641, zx642), @3(zx670, zx671, zx672), cb, cc, cd) → new_ps4(zx642, zx672, zx641, zx671, zx640, zx670, cd, cc, cb)
new_ps4(@2(zx640, zx641), @2(zx670, zx671), zx63, zx66, zx62, zx65, app(app(ty_@2, ce), cf), bf, be) → new_ps5(zx641, zx671, zx640, zx670, cf, ce)
new_rangeSize14(zx81, zx82, zx83, zx84, :(zx950, zx951), zx87, ee, app(app(app(ty_@3, fa), fb), fc), eg, eh) → new_index2(zx82, zx84, fa, fb, fc)
new_rangeSize14(zx81, zx82, zx83, zx84, [], :(zx870, zx871), ee, ef, eg, eh) → new_rangeSize15(zx81, zx82, zx83, zx84, ee, ef)
new_rangeSize13(zx25, zx26, zx27, zx28, :(zx290, zx291), eb, ec, ed) → new_rangeSize14(zx25, zx26, zx27, zx28, new_foldr9(zx290, new_range19(zx26, zx28, ec), ed, ec), new_foldr11(zx26, zx28, zx291, ed, ec), eb, ec, ed, ec)
new_rangeSize15(zx81, zx82, zx83, zx84, ee, ef) → new_primPlusInt19(new_index0(zx82, zx84, ef), zx82, zx84, new_index1(zx81, zx83, ee), ef)
new_ps5(zx82, zx84, zx81, zx83, ef, app(app(ty_@2, gb), gc)) → new_index3(zx81, zx83, gb, gc)
new_ps5(zx82, zx84, zx81, zx83, ef, app(app(app(ty_@3, fg), fh), ga)) → new_index2(zx81, zx83, fg, fh, ga)
new_rangeSize14(zx81, zx82, zx83, zx84, :(zx950, zx951), zx87, app(app(ty_@2, gb), gc), ef, eg, eh) → new_index3(zx81, zx83, gb, gc)
new_rangeSize15(zx81, zx82, zx83, zx84, app(app(app(ty_@3, fg), fh), ga), ef) → new_index2(zx81, zx83, fg, fh, ga)
new_ps4(@3(zx640, zx641, zx642), @3(zx670, zx671, zx672), zx63, zx66, zx62, zx65, app(app(app(ty_@3, cb), cc), cd), bf, be) → new_ps4(zx642, zx672, zx641, zx671, zx640, zx670, cd, cc, cb)
new_ps5(zx82, zx84, zx81, zx83, app(app(ty_@2, fd), ff), ee) → new_index3(zx82, zx84, fd, ff)
new_ps4(zx64, zx67, zx63, zx66, zx62, zx65, bg, bf, be) → new_ps5(zx63, zx66, zx62, zx65, bf, be)
new_rangeSize12(zx62, zx63, @2(zx640, zx641), zx65, zx66, @2(zx670, zx671), be, bf, app(app(ty_@2, ce), cf)) → new_ps5(zx641, zx671, zx640, zx670, cf, ce)

The TRS R consists of the following rules:

new_takeWhile112(zx444, zx445) → :(Integer(Pos(Succ(zx445))), new_takeWhile9(Succ(zx444), new_primPlusInt13(Pos(Succ(zx445))), new_primPlusInt13(Pos(Succ(zx445)))))
new_dsEm10(zx459, zx3640, zx3641) → new_enforceWHNF8(new_primPlusInt(zx459, zx3640), new_primPlusInt(zx459, zx3640), zx3641)
new_range13(zx47, zx48, ty_Integer) → new_range8(zx47, zx48)
new_primPlusInt22(zx151, Pos(zx1520), Neg(zx1530)) → new_primPlusInt23(zx151, zx1520, zx1530)
new_primPlusInt22(zx151, Neg(zx1520), Pos(zx1530)) → new_primPlusInt23(zx151, zx1520, zx1530)
new_range3(zx400, zx410, ty_@0) → new_range4(zx400, zx410)
new_primPlusInt6(Pos(zx4740), EQ) → new_primPlusInt10(zx4740)
new_index128(zx631, zx632, Zero, Zero) → new_index126(zx631, zx632)
new_index817(zx30, zx31, Succ(zx176000), Succ(zx129000)) → new_index817(zx30, zx31, zx176000, zx129000)
new_primPlusInt6(Neg(zx4740), LT) → new_primPlusInt8(zx4740)
new_foldr8(zx38, zx39, zx40, zx41, :(zx420, zx421), bbh, bca, bcb) → new_psPs1(new_foldr4(zx420, zx38, zx39, new_range2(zx40, zx41, bca), bbh, bca, bcb), new_foldr8(zx38, zx39, zx40, zx41, zx421, bbh, bca, bcb), bbh, bca, bcb)
new_range12(True, True) → :(True, new_foldr12)
new_primPlusInt18(Neg(zx4550), EQ) → new_primPlusInt8(zx4550)
new_primMinusNat3(zx16000, Zero) → Pos(Succ(zx16000))
new_foldr5(zx144, zx145, [], baa, bab, bac) → new_foldr6(baa, bab, bac)
new_index83(zx30, zx31, Neg(Zero), zx129) → new_index87(zx30, zx31, new_fromEnum(zx31), zx129)
new_map0(:(zx300, zx301)) → :(new_primIntToChar(zx300), new_map0(zx301))
new_ps6(zx64, zx67, zx63, zx66, zx62, zx65, bg, bf, be) → new_primPlusInt26(new_index(zx64, zx67, bg), zx64, zx67, new_ps3(zx63, zx66, zx62, zx65, bf, be), bg)
new_range18(zx300, zx310, ty_Char) → new_range9(zx300, zx310)
new_range23(zx3000, zx3100, app(app(ty_@2, beg), beh)) → new_range21(zx3000, zx3100, beg, beh)
new_primPlusInt6(Neg(zx4740), GT) → new_primPlusInt11(zx4740)
new_primPlusInt23(Succ(zx1510), Zero, Zero) → new_primMinusNat4(zx1510)
new_dsEm5(zx698, zx37811) → new_enforceWHNF4(zx698, zx698, zx37811)
new_foldr7[]
new_index83(zx30, zx31, Neg(Succ(zx13000)), zx129) → new_index86(zx30, zx31, zx13000, new_fromEnum(zx31), zx129)
new_index14(True, False) → new_error
new_primPlusInt7(zx4740) → new_primPlusInt1(zx4740)
new_index127(zx704, zx705, Succ(zx7060)) → new_index127(zx704, zx705, zx7060)
new_rangeSize9(zx137, zx138, app(app(app(ty_@3, cg), da), db)) → new_rangeSize2(@2(zx137, zx138), cg, da, db)
new_range13(zx47, zx48, ty_Int) → new_range10(zx47, zx48)
new_index14(True, True) → new_sum2(new_range12(True, True))
new_index817(zx30, zx31, Zero, Zero) → new_index814(zx30, zx31)
new_rangeSize21(@2(Pos(Zero), Pos(Zero))) → new_ps7(new_index1216(Pos(Zero), Pos(Zero)))
new_range22(zx3000, zx3100, ty_Bool) → new_range12(zx3000, zx3100)
new_range11(GT, EQ) → new_psPs3
new_index1(zx81, zx83, ty_Bool) → new_index14(zx81, zx83)
new_index129(zx544, Succ(zx5450)) → new_index129(zx544, zx5450)
new_index510(Integer(Pos(Succ(zx64000))), Integer(Pos(Zero))) → new_error
new_primMinusNat5(zx1510, Zero, zx15300) → new_primMinusNat3(zx1510, Succ(zx15300))
new_takeWhile114(zx435, zx436, zx437) → :(Neg(Succ(zx436)), new_takeWhile7(Neg(Succ(zx435)), zx437))
new_index88(zx30, zx31, Succ(zx16300), zx13000, zx129) → new_index816(zx30, zx31, zx16300, zx13000, zx129)
new_rangeSize119(zx62, zx63, zx64, zx65, zx66, zx67, [], :(zx700, zx701), be, bf, bg, bh, ca) → new_rangeSize113(zx62, zx63, zx64, zx65, zx66, zx67, be, bf, bg)
new_foldr9(zx109, :(zx1100, zx1101), bgf, bgg) → new_psPs2(:(@2(zx109, zx1100), []), new_foldr9(zx109, zx1101, bgf, bgg), bgf, bgg)
new_index511(zx652, zx653, Succ(zx6540), Succ(zx6550)) → new_index511(zx652, zx653, zx6540, zx6550)
new_rangeSize20(zx137, zx138, ty_Ordering) → new_rangeSize6(@2(zx137, zx138))
new_index810(zx30, zx31) → new_error
new_range18(zx300, zx310, ty_@0) → new_range4(zx300, zx310)
new_index513(zx568, Zero) → new_fromInteger(new_primMinusInt(Pos(Succ(zx568)), Neg(Zero)))
new_sum2([]) → new_foldl'
new_range23(zx3000, zx3100, ty_Integer) → new_range8(zx3000, zx3100)
new_range20(@3(zx3000, zx3001, zx3002), @3(zx3100, zx3101, zx3102), gd, ge, gf) → new_foldr8(zx3002, zx3102, zx3001, zx3101, new_range23(zx3000, zx3100, gd), gd, ge, gf)
new_index1214(Pos(Succ(zx6400)), Neg(zx670)) → new_error
new_index1(zx81, zx83, app(app(app(ty_@3, fg), fh), ga)) → new_index4(zx81, zx83, fg, fh, ga)
new_takeWhile7(Pos(Zero), Neg(Zero)) → :(Neg(Zero), new_takeWhile21(Zero, new_ps2, new_ps2))
new_primPlusNat2(Zero, Succ(zx15200), Zero) → new_primPlusNat5(Zero)
new_primPlusNat2(Zero, Zero, Succ(zx15300)) → new_primPlusNat5(Zero)
new_index514(zx692, zx693, Zero) → new_fromInteger(new_primMinusInt(Pos(Succ(zx693)), Pos(Succ(zx692))))
new_rangeSize114(zx81, zx82, zx83, zx84, [], :(zx870, zx871), ee, ef, eg, eh) → new_rangeSize115(zx81, zx82, zx83, zx84, ee, ef)
new_index510(Integer(Neg(Succ(zx64000))), Integer(Neg(Zero))) → new_fromInteger(new_primMinusInt(Neg(Zero), Neg(Succ(zx64000))))
new_takeWhile111(zx429, zx430, zx431) → :(Pos(Succ(zx430)), new_takeWhile21(Succ(zx429), zx431, zx431))
new_takeWhile7(Neg(Succ(zx31000)), Pos(Zero)) → []
new_foldr11(zx47, zx48, :(zx490, zx491), bba, bbb) → new_psPs2(new_foldr9(zx490, new_range13(zx47, zx48, bbb), bba, bbb), new_foldr11(zx47, zx48, zx491, bba, bbb), bba, bbb)
new_rangeSize111(zx385, zx386, Succ(zx3870), Succ(zx3880)) → new_rangeSize111(zx385, zx386, zx3870, zx3880)
new_foldr4(zx101, zx102, zx103, [], bfa, bfb, bfc) → new_foldr6(bfa, bfb, bfc)
new_primMinusInt(Pos(zx2380), Pos(zx2370)) → new_primMinusNat0(zx2380, zx2370)
new_primPlusInt15(Neg(zx4560), EQ) → new_primPlusInt16(zx4560)
new_range1(zx400, zx410, ty_Integer) → new_range8(zx400, zx410)
new_range18(zx300, zx310, app(app(ty_@2, bag), bah)) → new_range21(zx300, zx310, bag, bah)
new_index510(Integer(Pos(Zero)), Integer(Pos(Zero))) → new_fromInteger(new_primMinusInt(Pos(Zero), Pos(Zero)))
new_range2(zx40, zx41, ty_Integer) → new_range8(zx40, zx41)
new_index129(zx544, Zero) → new_ms(Pos(Succ(zx544)), Neg(Zero))
new_index14(False, False) → new_sum3(new_range12(False, False))
new_rangeSize20(zx137, zx138, ty_Int) → new_rangeSize21(@2(zx137, zx138))
new_index1214(Neg(Succ(zx6400)), Neg(Zero)) → new_ms(Neg(Zero), Neg(Succ(zx6400)))
new_rangeSize7(@2(Integer(Neg(Zero)), Integer(Neg(Zero)))) → new_ps7(new_index60(Integer(Neg(Zero)), Integer(Neg(Zero))))
new_rangeSize6(@2(EQ, GT)) → new_ps7(new_index13(EQ, GT))
new_index0(zx82, zx84, ty_@0) → new_index9(zx82, zx84)
new_range18(zx300, zx310, ty_Ordering) → new_range11(zx300, zx310)
new_index87(zx30, zx31, Neg(Succ(zx16400)), zx129) → new_index811(zx30, zx31, zx16400, Zero, zx129)
new_index510(Integer(Pos(Zero)), Integer(Neg(Succ(zx67000)))) → new_error
new_primPlusInt1(zx4740) → new_primMinusNat0(Zero, zx4740)
new_takeWhile8(Integer(Pos(Zero)), Integer(Neg(Zero))) → :(Integer(Neg(Zero)), new_takeWhile9(Zero, new_primPlusInt13(Neg(Zero)), new_primPlusInt13(Neg(Zero))))
new_index511(zx652, zx653, Succ(zx6540), Zero) → new_error
new_takeWhile8(Integer(Pos(Succ(zx310000))), Integer(Pos(Succ(zx300000)))) → new_takeWhile19(zx310000, zx300000, zx300000, zx310000)
new_primPlusInt24(zx158, Neg(zx1590), Neg(zx1600)) → new_primPlusInt20(zx158, zx1590, zx1600)
new_rangeSize7(@2(Integer(Neg(Zero)), Integer(Pos(Succ(zx31000))))) → new_ps7(new_index60(Integer(Neg(Zero)), Integer(Pos(Succ(zx31000)))))
new_rangeSize16(zx12, zx13, zx14, zx15, zx16, zx17, :(zx180, zx181), ba, bb, bc, bd) → new_rangeSize119(zx12, zx13, zx14, zx15, zx16, zx17, new_foldr4(zx180, zx14, zx17, new_range16(zx13, zx16, bb), bd, bb, bc), new_foldr8(zx14, zx17, zx13, zx16, zx181, bd, bb, bc), ba, bb, bc, bd, bb)
new_takeWhile17(zx487, zx488, Zero, Succ(zx4900)) → new_takeWhile18(zx487, zx488)
new_primPlusInt8(zx4740) → new_primPlusInt7(zx4740)
new_takeWhile110(zx429, zx430, zx431, Succ(zx4320), Succ(zx4330)) → new_takeWhile110(zx429, zx430, zx431, zx4320, zx4330)
new_rangeSize9(zx137, zx138, app(app(ty_@2, dc), dd)) → new_rangeSize4(@2(zx137, zx138), dc, dd)
new_index820(zx30, zx31, Succ(zx12900), zx17600) → new_index817(zx30, zx31, zx12900, zx17600)
new_primPlusInt5(zx4740) → Pos(new_primPlusNat0(zx4740, Zero))
new_primMinusNat2(Succ(zx2130), zx16000, Zero) → Pos(Succ(Succ(new_primPlusNat0(zx2130, zx16000))))
new_rangeSize19(zx380, zx381, :(zx3970, zx3971)) → new_ps7(new_index7(Integer(Pos(Succ(zx380))), Integer(Pos(Succ(zx381)))))
new_psPs1([], zx88, bbh, bca, bcb) → zx88
new_index0(zx82, zx84, ty_Char) → new_index10(zx82, zx84)
new_rangeSize118(zx291, zx292, []) → Pos(Zero)
new_index0(zx82, zx84, ty_Bool) → new_index14(zx82, zx84)
new_primPlusInt24(zx158, Pos(zx1590), Neg(zx1600)) → new_primPlusInt25(zx158, zx1590, zx1600)
new_primPlusInt24(zx158, Neg(zx1590), Pos(zx1600)) → new_primPlusInt25(zx158, zx1590, zx1600)
new_index1(zx81, zx83, ty_Ordering) → new_index13(zx81, zx83)
new_primPlusNat5(Succ(zx127000)) → Succ(zx127000)
new_range22(zx3000, zx3100, app(app(ty_@2, bde), bdf)) → new_range21(zx3000, zx3100, bde, bdf)
new_primPlusInt22(zx151, Pos(zx1520), Pos(zx1530)) → new_primPlusInt21(zx151, zx1520, zx1530)
new_primPlusInt26(Pos(zx1360), zx137, zx138, zx139, bgh) → new_primPlusInt22(zx1360, new_rangeSize9(zx137, zx138, bgh), zx139)
new_index83(zx30, zx31, Pos(Zero), zx129) → new_index85(zx30, zx31, new_fromEnum(zx31), zx129)
new_range16(zx13, zx16, ty_Bool) → new_range12(zx13, zx16)
new_rangeSize111(zx385, zx386, Zero, Succ(zx3880)) → new_rangeSize112(zx385, zx386)
new_index821(zx30, zx31, Pos(Zero), Pos(Zero)) → new_index814(zx30, zx31)
new_range11(GT, GT) → :(GT, new_foldr7)
new_takeWhile110(zx429, zx430, zx431, Succ(zx4320), Zero) → []
new_index128(zx631, zx632, Succ(zx6330), Zero) → new_error
new_index811(zx30, zx31, zx13000, Zero, zx129) → new_index812(zx30, zx31, zx129)
new_primPlusNat3(zx1510, Succ(zx2410), zx15300) → new_primPlusNat1(Succ(zx1510), Succ(new_primPlusNat0(zx2410, zx15300)))
new_rangeSize20(zx137, zx138, ty_@0) → new_rangeSize3(@2(zx137, zx138))
new_range13(zx47, zx48, ty_Bool) → new_range12(zx47, zx48)
new_index1212(zx700, zx701, Succ(zx7020)) → new_index1212(zx700, zx701, zx7020)
new_takeWhile8(Integer(Pos(Zero)), Integer(Pos(Zero))) → :(Integer(Pos(Zero)), new_takeWhile9(Zero, new_primPlusInt13(Pos(Zero)), new_primPlusInt13(Pos(Zero))))
new_index817(zx30, zx31, Zero, Succ(zx129000)) → new_index818(zx30, zx31)
new_range10(zx300, zx310) → new_enumFromTo(zx300, zx310)
new_index57(zx556, Succ(zx5570)) → new_index57(zx556, zx5570)
new_sum0([]) → new_foldl'
new_range17(zx300, zx310, app(app(app(ty_@3, gd), ge), gf)) → new_range20(zx300, zx310, gd, ge, gf)
new_index0(zx82, zx84, app(app(ty_@2, fd), ff)) → new_index6(zx82, zx84, fd, ff)
new_rangeSize19(zx380, zx381, []) → Pos(Zero)
new_primPlusNat4(Succ(zx2430), zx15300) → new_primPlusNat0(Zero, Succ(Succ(new_primPlusNat0(zx2430, zx15300))))
new_takeWhile7(Pos(zx3100), Neg(Succ(zx30000))) → :(Neg(Succ(zx30000)), new_takeWhile21(zx3100, new_ps1(zx30000), new_ps1(zx30000)))
new_range5(zx102, zx103, ty_Ordering) → new_range11(zx102, zx103)
new_range5(zx102, zx103, ty_@0) → new_range4(zx102, zx103)
new_range11(LT, LT) → :(LT, new_foldr7)
new_index1213(zx525, Zero) → new_ms(Pos(Succ(zx525)), Pos(Zero))
new_range13(zx47, zx48, ty_@0) → new_range4(zx47, zx48)
new_rangeSize7(@2(Integer(Pos(Succ(zx30000))), Integer(Neg(zx3100)))) → Pos(Zero)
new_rangeSize8(@2(zx30, zx31)) → new_rangeSize117(zx30, zx31, new_range9(zx30, zx31))
new_dsEm8(zx673, zx36011) → new_enforceWHNF7(zx673, zx673, zx36011)
new_primPlusInt(Neg(zx4590), False) → new_primPlusInt4(zx4590)
new_rangeSize9(zx137, zx138, ty_Char) → new_rangeSize8(@2(zx137, zx138))
new_index82(zx30, zx31, zx129) → new_index821(zx30, zx31, new_fromEnum(zx31), zx129)
new_index(zx64, zx67, ty_Bool) → new_index14(zx64, zx67)
new_rangeSize20(zx137, zx138, ty_Char) → new_rangeSize8(@2(zx137, zx138))
new_rangeSize7(@2(Integer(Pos(Zero)), Integer(Pos(Succ(zx31000))))) → new_ps7(new_index7(Integer(Pos(Zero)), Integer(Pos(Succ(zx31000)))))
new_primMulNat0(Succ(zx159000), zx16000) → new_primPlusNat1(new_primMulNat0(zx159000, zx16000), zx16000)
new_index0(zx82, zx84, ty_Integer) → new_index7(zx82, zx84)
new_index1217(zx64, zx67) → new_index1216(zx64, zx67)
new_range19(zx26, zx28, ty_Ordering) → new_range11(zx26, zx28)
new_primPlusInt6(Neg(zx4740), EQ) → new_primPlusInt11(zx4740)
new_rangeSize7(@2(Integer(Neg(Succ(zx30000))), Integer(Neg(Zero)))) → new_ps7(new_index7(Integer(Neg(Succ(zx30000))), Integer(Neg(Zero))))
new_range11(LT, GT) → :(LT, :(EQ, :(GT, new_foldr7)))
new_rangeSize2(@2(@3(zx300, zx301, zx302), @3(zx310, zx311, zx312)), de, df, dg) → new_rangeSize16(zx300, zx301, zx302, zx310, zx311, zx312, new_range17(zx300, zx310, de), de, df, dg, de)
new_foldr4(zx101, zx102, zx103, :(zx1040, zx1041), bfa, bfb, bfc) → new_psPs1(new_foldr5(zx101, zx1040, new_range5(zx102, zx103, bfc), bfa, bfb, bfc), new_foldr4(zx101, zx102, zx103, zx1041, bfa, bfb, bfc), bfa, bfb, bfc)
new_index(zx64, zx67, app(app(ty_@2, ce), cf)) → new_index6(zx64, zx67, ce, cf)
new_range3(zx400, zx410, ty_Ordering) → new_range11(zx400, zx410)
new_range3(zx400, zx410, ty_Bool) → new_range12(zx400, zx410)
new_index1(zx81, zx83, ty_@0) → new_index9(zx81, zx83)
new_range13(zx47, zx48, ty_Ordering) → new_range11(zx47, zx48)
new_index9(@0, @0) → Pos(Zero)
new_primMinusNat2(Zero, zx16000, zx158) → new_primMinusNat3(zx16000, zx158)
new_ps(zx3000) → new_primPlusInt13(Pos(Succ(zx3000)))
new_rangeSize6(@2(GT, EQ)) → new_rangeSize18(new_psPs3)
new_index510(Integer(Pos(Succ(zx64000))), Integer(Pos(Succ(zx67000)))) → new_index511(zx64000, zx67000, zx64000, zx67000)
new_range11(LT, EQ) → :(LT, :(EQ, new_foldr7))
new_range5(zx102, zx103, ty_Bool) → new_range12(zx102, zx103)
new_range13(zx47, zx48, app(app(ty_@2, beb), bec)) → new_range7(zx47, zx48, beb, bec)
new_rangeSize112(zx385, zx386) → new_ps7(new_index7(Integer(Neg(Succ(zx385))), Integer(Neg(Succ(zx386)))))
new_index1(zx81, zx83, ty_Integer) → new_index7(zx81, zx83)
new_index510(Integer(Pos(Zero)), Integer(Pos(Succ(zx67000)))) → new_index57(zx67000, Succ(zx67000))
new_index512(zx652, zx653) → new_index514(zx652, zx653, Succ(zx653))
new_takeWhile19(zx444, zx445, Zero, Succ(zx4470)) → new_takeWhile112(zx444, zx445)
new_rangeSize111(zx385, zx386, Succ(zx3870), Zero) → Pos(Zero)
new_foldl'new_fromInt
new_index1215(zx504, zx505, Zero) → new_ms(Pos(Succ(zx505)), Neg(Succ(zx504)))
new_index1214(Neg(Succ(zx6400)), Pos(Zero)) → new_ms(Pos(Zero), Neg(Succ(zx6400)))
new_dsEm12(zx688, zx36411) → new_enforceWHNF8(zx688, zx688, zx36411)
new_index1214(Neg(Succ(zx6400)), Neg(Succ(zx6700))) → new_index128(zx6400, zx6700, zx6700, zx6400)
new_primPlusInt14(Pos(zx4600), False) → new_primPlusInt13(Pos(zx4600))
new_takeWhile19(zx444, zx445, Succ(zx4460), Succ(zx4470)) → new_takeWhile19(zx444, zx445, zx4460, zx4470)
new_index86(zx30, zx31, zx13000, Pos(zx1630), zx129) → new_index81(zx30, zx31, zx129)
new_enforceWHNF5(zx668, zx667, []) → new_foldl'0(zx667)
new_rangeSize20(zx137, zx138, ty_Integer) → new_rangeSize7(@2(zx137, zx138))
new_primPlusInt18(Neg(zx4550), GT) → new_primPlusInt11(zx4550)
new_rangeSize17(zx353, zx354, []) → Pos(Zero)
new_rangeSize7(@2(Integer(Pos(Zero)), Integer(Neg(Succ(zx31000))))) → Pos(Zero)
new_index510(Integer(Neg(Succ(zx64000))), Integer(Pos(Zero))) → new_fromInteger(new_primMinusInt(Pos(Zero), Neg(Succ(zx64000))))
new_primPlusInt14(Pos(zx4600), True) → new_primPlusInt2(zx4600)
new_range1(zx400, zx410, ty_Char) → new_range9(zx400, zx410)
new_rangeSize21(@2(Neg(Zero), Pos(Succ(zx3100)))) → new_ps7(new_index1216(Neg(Zero), Pos(Succ(zx3100))))
new_range2(zx40, zx41, ty_Char) → new_range9(zx40, zx41)
new_takeWhile7(Pos(Zero), Pos(Succ(zx30000))) → []
new_primPlusNat5(Zero) → Zero
new_range1(zx400, zx410, ty_Int) → new_range10(zx400, zx410)
new_index1214(Pos(Zero), Neg(Succ(zx6700))) → new_error
new_index811(zx30, zx31, zx13000, Succ(zx16100), zx129) → new_index816(zx30, zx31, zx13000, zx16100, zx129)
new_index821(zx30, zx31, Neg(Succ(zx17600)), Neg(zx1290)) → new_index820(zx30, zx31, zx1290, zx17600)
new_takeWhile113(zx435, zx436, zx437, Succ(zx4380), Succ(zx4390)) → new_takeWhile113(zx435, zx436, zx437, zx4380, zx4390)
new_enforceWHNF4(zx690, zx689, []) → new_foldl'0(zx689)
new_enforceWHNF6(zx672, zx671, []) → new_foldl'0(zx671)
new_range11(EQ, EQ) → :(EQ, new_foldr7)
new_range11(EQ, GT) → :(EQ, :(GT, new_foldr7))
new_enforceWHNF4(zx690, zx689, :(zx37810, zx37811)) → new_dsEm5(new_primPlusInt14(zx689, zx37810), zx37811)
new_range21(@2(zx3000, zx3001), @2(zx3100, zx3101), gg, gh) → new_foldr11(zx3001, zx3101, new_range22(zx3000, zx3100, gg), gg, gh)
new_index13(EQ, EQ) → new_sum(new_range11(EQ, EQ))
new_takeWhile8(Integer(Neg(Succ(zx310000))), Integer(Neg(Succ(zx300000)))) → new_takeWhile17(zx310000, zx300000, zx310000, zx300000)
new_index510(Integer(Neg(Succ(zx64000))), Integer(Neg(Succ(zx67000)))) → new_index58(zx64000, zx67000, zx67000, zx64000)
new_takeWhile7(Neg(Succ(zx31000)), Neg(Zero)) → []
new_sum0(:(zx3600, zx3601)) → new_seq(new_fromInt, zx3600, new_fromInt, zx3601)
new_index510(Integer(Neg(Zero)), Integer(Neg(Succ(zx67000)))) → new_error
new_index819(zx30, zx31, zx17600, Succ(zx12900)) → new_index817(zx30, zx31, zx17600, zx12900)
new_range19(zx26, zx28, app(app(ty_@2, bbf), bbg)) → new_range21(zx26, zx28, bbf, bbg)
new_primPlusNat2(Succ(zx1510), Succ(zx15200), Succ(zx15300)) → new_primPlusNat3(zx1510, new_primMulNat0(zx15200, zx15300), zx15300)
new_psPs2([], zx89, bba, bbb) → zx89
new_rangeSize21(@2(Pos(Succ(zx3000)), Pos(Zero))) → Pos(Zero)
new_primPlusInt(Pos(zx4590), True) → new_primPlusInt3(zx4590)
new_range17(zx300, zx310, ty_Ordering) → new_range11(zx300, zx310)
new_takeWhile7(Neg(Zero), Neg(Zero)) → :(Neg(Zero), new_takeWhile22(new_ps2, new_ps2))
new_index510(Integer(Pos(Succ(zx64000))), Integer(Neg(zx6700))) → new_error
new_rangeSize17(zx353, zx354, :(zx3630, zx3631)) → new_ps7(new_index11(Neg(Succ(zx353)), Neg(Succ(zx354))))
new_primPlusNat2(Succ(zx1510), Zero, Zero) → new_primPlusNat5(Succ(zx1510))
new_index(zx64, zx67, ty_Integer) → new_index7(zx64, zx67)
new_index11(zx64, zx67) → new_index1217(zx64, zx67)
new_takeWhile9(zx31000, zx196, zx195) → new_takeWhile8(Integer(Pos(zx31000)), Integer(zx195))
new_takeWhile7(Neg(zx3100), Pos(Succ(zx30000))) → []
new_index10(zx30, zx31) → new_index83(zx30, zx31, new_fromEnum(zx30), new_fromEnum(zx31))
new_range17(zx300, zx310, ty_Bool) → new_range12(zx300, zx310)
new_index0(zx82, zx84, ty_Ordering) → new_index13(zx82, zx84)
new_range16(zx13, zx16, app(app(ty_@2, bgd), bge)) → new_range21(zx13, zx16, bgd, bge)
new_index13(EQ, LT) → new_error
new_primPlusNat1(Zero, zx15300) → Succ(zx15300)
new_range19(zx26, zx28, ty_Int) → new_range10(zx26, zx28)
new_index84(zx30, zx31, zx13000, Neg(zx1610), zx129) → new_index812(zx30, zx31, zx129)
new_range17(zx300, zx310, ty_Int) → new_range10(zx300, zx310)
new_takeWhile7(Neg(Zero), Neg(Succ(zx30000))) → :(Neg(Succ(zx30000)), new_takeWhile22(new_ps1(zx30000), new_ps1(zx30000)))
new_index1214(Neg(Zero), Neg(Zero)) → new_ms(Neg(Zero), Neg(Zero))
new_range23(zx3000, zx3100, ty_Char) → new_range9(zx3000, zx3100)
new_index812(zx30, zx31, zx129) → new_index810(zx30, zx31)
new_primPlusInt9(zx4740) → new_primPlusInt12(zx4740)
new_index13(LT, LT) → new_sum0(new_range11(LT, LT))
new_primMinusNat0(Succ(zx160000), Zero) → Pos(Succ(zx160000))
new_range17(zx300, zx310, ty_Integer) → new_range8(zx300, zx310)
new_primIntToChar(Neg(Zero)) → Char(Zero)
new_range5(zx102, zx103, ty_Char) → new_range9(zx102, zx103)
new_index1210(zx626, zx627, Zero, Succ(zx6290)) → new_index1211(zx626, zx627)
new_index87(zx30, zx31, Pos(Succ(zx16400)), zx129) → new_index81(zx30, zx31, zx129)
new_range18(zx300, zx310, ty_Bool) → new_range12(zx300, zx310)
new_range7(@2(zx400, zx401), @2(zx410, zx411), bcc, bcd) → new_foldr11(zx401, zx411, new_range3(zx400, zx410, bcc), bcc, bcd)
new_takeWhile17(zx487, zx488, Succ(zx4890), Zero) → []
new_index57(zx556, Zero) → new_fromInteger(new_primMinusInt(Pos(Succ(zx556)), Pos(Zero)))
new_index1210(zx626, zx627, Succ(zx6280), Zero) → new_error
new_seq(zx473, zx3600, zx474, zx3601) → new_enforceWHNF7(new_primPlusInt6(zx473, zx3600), new_primPlusInt6(zx474, zx3600), zx3601)
new_range4(@0, @0) → :(@0, [])
new_ps3(zx82, zx84, zx81, zx83, ef, ee) → new_primPlusInt26(new_index0(zx82, zx84, ef), zx82, zx84, new_index1(zx81, zx83, ee), ef)
new_rangeSize20(zx137, zx138, app(app(app(ty_@3, cg), da), db)) → new_rangeSize2(@2(zx137, zx138), cg, da, db)
new_takeWhile8(Integer(Pos(Succ(zx310000))), Integer(Neg(Zero))) → :(Integer(Neg(Zero)), new_takeWhile9(Succ(zx310000), new_primPlusInt13(Neg(Zero)), new_primPlusInt13(Neg(Zero))))
new_takeWhile113(zx435, zx436, zx437, Zero, Zero) → new_takeWhile114(zx435, zx436, zx437)
new_index510(Integer(Neg(Zero)), Integer(Neg(Zero))) → new_fromInteger(new_primMinusInt(Neg(Zero), Neg(Zero)))
new_primMinusNat1(Zero) → Pos(Zero)
new_index56(zx708, zx709, Succ(zx7100)) → new_index56(zx708, zx709, zx7100)
new_takeWhile20(zx212, zx211) → new_takeWhile8(Integer(Neg(Zero)), Integer(zx211))
new_range23(zx3000, zx3100, ty_Int) → new_range10(zx3000, zx3100)
new_range13(zx47, zx48, app(app(app(ty_@3, bdg), bdh), bea)) → new_range6(zx47, zx48, bdg, bdh, bea)
new_index1213(zx525, Succ(zx5260)) → new_index1213(zx525, zx5260)
new_index821(zx30, zx31, Neg(Zero), Neg(Zero)) → new_index814(zx30, zx31)
new_takeWhile21(zx3100, zx166, zx165) → new_takeWhile7(Pos(zx3100), zx165)
new_range12(True, False) → new_foldr12
new_primPlusInt23(Zero, Succ(zx15200), Zero) → new_primMinusNat1(Zero)
new_primPlusInt23(Zero, Zero, Succ(zx15300)) → new_primMinusNat1(Zero)
new_rangeSize9(zx137, zx138, ty_Int) → new_rangeSize21(@2(zx137, zx138))
new_range16(zx13, zx16, ty_@0) → new_range4(zx13, zx16)
new_rangeSize5(@2(False, False)) → new_ps7(new_index14(False, False))
new_rangeSize21(@2(Neg(Succ(zx3000)), Neg(Succ(zx3100)))) → new_rangeSize17(zx3000, zx3100, new_takeWhile113(zx3100, zx3000, new_ps1(zx3000), zx3100, zx3000))
new_takeWhile7(Neg(Zero), Pos(Zero)) → :(Pos(Zero), new_takeWhile22(new_ps0, new_ps0))
new_primPlusNat0(Succ(zx24500), Zero) → Succ(zx24500)
new_primPlusNat0(Zero, Succ(zx153000)) → Succ(zx153000)
new_map0([]) → []
new_index515(zx531, zx532, Zero) → new_fromInteger(new_primMinusInt(Pos(Succ(zx532)), Neg(Succ(zx531))))
new_rangeSize117(zx30, zx31, []) → Pos(Zero)
new_rangeSize6(@2(LT, LT)) → new_ps7(new_index13(LT, LT))
new_rangeSize114(zx81, zx82, zx83, zx84, [], [], ee, ef, eg, eh) → new_rangeSize116(zx81, zx82, zx83, zx84, ee, ef)
new_range17(zx300, zx310, ty_Char) → new_range9(zx300, zx310)
new_primIntToChar(Neg(Succ(zx30000))) → error([])
new_index813(zx30, zx31, zx129) → new_index82(zx30, zx31, zx129)
new_psPs2(:(zx1260, zx1261), zx89, bba, bbb) → :(zx1260, new_psPs2(zx1261, zx89, bba, bbb))
new_index821(zx30, zx31, Neg(Zero), Pos(Succ(zx12900))) → new_index818(zx30, zx31)
new_index820(zx30, zx31, Zero, zx17600) → new_index818(zx30, zx31)
new_index821(zx30, zx31, Neg(Zero), Neg(Succ(zx12900))) → new_index819(zx30, zx31, zx12900, Zero)
new_range17(zx300, zx310, app(app(ty_@2, gg), gh)) → new_range21(zx300, zx310, gg, gh)
new_index58(zx657, zx658, Succ(zx6590), Succ(zx6600)) → new_index58(zx657, zx658, zx6590, zx6600)
new_range18(zx300, zx310, app(app(app(ty_@3, bad), bae), baf)) → new_range20(zx300, zx310, bad, bae, baf)
new_primMulNat0(Zero, zx16000) → Zero
new_rangeSize114(zx81, zx82, zx83, zx84, :(zx950, zx951), zx87, ee, ef, eg, eh) → new_rangeSize115(zx81, zx82, zx83, zx84, ee, ef)
new_index510(Integer(Pos(Zero)), Integer(Neg(Zero))) → new_fromInteger(new_primMinusInt(Neg(Zero), Pos(Zero)))
new_index510(Integer(Neg(Zero)), Integer(Pos(Zero))) → new_fromInteger(new_primMinusInt(Pos(Zero), Neg(Zero)))
new_rangeSize20(zx137, zx138, app(app(ty_@2, dc), dd)) → new_rangeSize4(@2(zx137, zx138), dc, dd)
new_primPlusInt25(zx158, zx1590, zx1600) → Neg(new_primPlusNat2(zx158, zx1590, zx1600))
new_index81(zx30, zx31, zx129) → new_index82(zx30, zx31, zx129)
new_index1(zx81, zx83, ty_Char) → new_index10(zx81, zx83)
new_rangeSize7(@2(Integer(Neg(Succ(zx30000))), Integer(Pos(zx3100)))) → new_ps7(new_index510(Integer(Neg(Succ(zx30000))), Integer(Pos(zx3100))))
new_index1214(Neg(Zero), Pos(Succ(zx6700))) → new_index129(zx6700, Succ(zx6700))
new_rangeSize21(@2(Pos(Succ(zx3000)), Neg(zx310))) → Pos(Zero)
new_range1(zx400, zx410, ty_Bool) → new_range12(zx400, zx410)
new_dsEm4(zx455, zx3610, zx3611) → new_enforceWHNF5(new_primPlusInt18(zx455, zx3610), new_primPlusInt18(zx455, zx3610), zx3611)
new_primPlusInt20(zx158, Succ(zx15900), Zero) → new_primMinusNat1(zx158)
new_primPlusInt20(zx158, Zero, Succ(zx16000)) → new_primMinusNat1(zx158)
new_index6(@2(zx640, zx641), @2(zx670, zx671), ce, cf) → new_ps3(zx641, zx671, zx640, zx670, cf, ce)
new_takeWhile113(zx435, zx436, zx437, Succ(zx4380), Zero) → []
new_range19(zx26, zx28, app(app(app(ty_@3, bbc), bbd), bbe)) → new_range20(zx26, zx28, bbc, bbd, bbe)
new_takeWhile19(zx444, zx445, Succ(zx4460), Zero) → []
new_index128(zx631, zx632, Succ(zx6330), Succ(zx6340)) → new_index128(zx631, zx632, zx6330, zx6340)
new_takeWhile8(Integer(Neg(Zero)), Integer(Neg(Succ(zx300000)))) → :(Integer(Neg(Succ(zx300000))), new_takeWhile20(new_primPlusInt13(Neg(Succ(zx300000))), new_primPlusInt13(Neg(Succ(zx300000)))))
new_sum1([]) → new_foldl'
new_index511(zx652, zx653, Zero, Zero) → new_index512(zx652, zx653)
new_takeWhile22(zx173, zx172) → new_takeWhile7(Neg(Zero), zx172)
new_range12(False, False) → :(False, new_foldr12)
new_index88(zx30, zx31, Zero, zx13000, zx129) → new_index81(zx30, zx31, zx129)
new_enforceWHNF8(zx678, zx677, :(zx36410, zx36411)) → new_dsEm12(new_primPlusInt(zx677, zx36410), zx36411)
new_enforceWHNF6(zx672, zx671, :(zx36210, zx36211)) → new_dsEm6(new_primPlusInt15(zx671, zx36210), zx36211)
new_primPlusInt15(Pos(zx4560), GT) → new_primPlusInt9(zx4560)
new_fromInteger(zx450) → zx450
new_range11(GT, LT) → new_foldr7
new_index821(zx30, zx31, Pos(Zero), Neg(Zero)) → new_index814(zx30, zx31)
new_index821(zx30, zx31, Neg(Zero), Pos(Zero)) → new_index814(zx30, zx31)
new_index818(zx30, zx31) → new_index815(zx30, zx31)
new_primPlusInt23(Succ(zx1510), Succ(zx15200), Zero) → new_primMinusNat4(zx1510)
new_primPlusInt23(Succ(zx1510), Zero, Succ(zx15300)) → new_primMinusNat4(zx1510)
new_primMinusNat2(Succ(zx2130), zx16000, Succ(zx1580)) → new_primMinusNat3(new_primPlusNat0(zx2130, zx16000), zx1580)
new_range22(zx3000, zx3100, ty_@0) → new_range4(zx3000, zx3100)
new_index89(zx30, zx31) → new_index810(zx30, zx31)
new_takeWhile8(Integer(Neg(Zero)), Integer(Pos(Zero))) → :(Integer(Pos(Zero)), new_takeWhile20(new_primPlusInt13(Pos(Zero)), new_primPlusInt13(Pos(Zero))))
new_takeWhile8(Integer(Neg(Succ(zx310000))), Integer(Neg(Zero))) → []
new_range18(zx300, zx310, ty_Integer) → new_range8(zx300, zx310)
new_rangeSize119(zx62, zx63, zx64, zx65, zx66, zx67, :(zx900, zx901), zx70, be, bf, bg, bh, ca) → new_rangeSize113(zx62, zx63, zx64, zx65, zx66, zx67, be, bf, bg)
new_rangeSize21(@2(Neg(Zero), Neg(Zero))) → new_ps7(new_index1216(Neg(Zero), Neg(Zero)))
new_rangeSize6(@2(EQ, LT)) → Pos(Zero)
new_ps7(zx127) → new_primPlusInt13(zx127)
new_primPlusInt4(zx4590) → new_primPlusInt0(zx4590)
new_primPlusInt3(zx4590) → new_primPlusInt5(zx4590)
new_sum([]) → new_foldl'
new_index58(zx657, zx658, Succ(zx6590), Zero) → new_error
new_index821(zx30, zx31, Pos(Zero), Neg(Succ(zx12900))) → new_index89(zx30, zx31)
new_rangeSize6(@2(LT, GT)) → new_ps7(new_index13(LT, GT))
new_index60(zx64, zx67) → new_index510(zx64, zx67)
new_index510(Integer(Neg(Succ(zx64000))), Integer(Pos(Succ(zx67000)))) → new_index515(zx64000, zx67000, Succ(zx67000))
new_rangeSize21(@2(Neg(Zero), Neg(Succ(zx3100)))) → Pos(Zero)
new_range19(zx26, zx28, ty_Char) → new_range9(zx26, zx28)
new_range2(zx40, zx41, ty_Ordering) → new_range11(zx40, zx41)
new_index87(zx30, zx31, Neg(Zero), zx129) → new_index813(zx30, zx31, zx129)
new_index126(zx631, zx632) → new_index127(zx631, zx632, Succ(zx632))
new_range17(zx300, zx310, ty_@0) → new_range4(zx300, zx310)
new_range12(False, True) → :(False, :(True, new_foldr12))
new_rangeSize21(@2(Neg(Succ(zx3000)), Neg(Zero))) → new_ps7(new_index1217(Neg(Succ(zx3000)), Neg(Zero)))
new_rangeSize110(zx25, zx26, zx27, zx28, [], eb, ec, ed) → new_rangeSize116(zx25, zx26, zx27, zx28, eb, ec)
new_primPlusInt14(Neg(zx4600), False) → new_primPlusInt13(Neg(zx4600))
new_index816(zx30, zx31, Zero, Succ(zx161000), zx129) → new_index81(zx30, zx31, zx129)
new_range19(zx26, zx28, ty_Bool) → new_range12(zx26, zx28)
new_range5(zx102, zx103, app(app(ty_@2, bfg), bfh)) → new_range7(zx102, zx103, bfg, bfh)
new_index13(LT, GT) → new_sum1(new_range11(LT, GT))
new_ps0new_primPlusInt13(Pos(Zero))
new_range22(zx3000, zx3100, app(app(app(ty_@3, bdb), bdc), bdd)) → new_range20(zx3000, zx3100, bdb, bdc, bdd)
new_range22(zx3000, zx3100, ty_Integer) → new_range8(zx3000, zx3100)
new_takeWhile7(Pos(Zero), Pos(Zero)) → :(Pos(Zero), new_takeWhile21(Zero, new_ps0, new_ps0))
new_foldr12[]
new_primPlusInt18(Pos(zx4550), EQ) → new_primPlusInt9(zx4550)
new_rangeSize110(zx25, zx26, zx27, zx28, :(zx290, zx291), eb, ec, ed) → new_rangeSize114(zx25, zx26, zx27, zx28, new_foldr9(zx290, new_range19(zx26, zx28, ec), ed, ec), new_foldr11(zx26, zx28, zx291, ed, ec), eb, ec, ed, ec)
new_index128(zx631, zx632, Zero, Succ(zx6340)) → new_index126(zx631, zx632)
new_index0(zx82, zx84, ty_Int) → new_index11(zx82, zx84)
new_rangeSize21(@2(Pos(Zero), Neg(Zero))) → new_ps7(new_index1216(Pos(Zero), Neg(Zero)))
new_rangeSize21(@2(Neg(Zero), Pos(Zero))) → new_ps7(new_index1216(Neg(Zero), Pos(Zero)))
new_index14(False, True) → new_sum2(new_range12(False, True))
new_rangeSize16(zx12, zx13, zx14, zx15, zx16, zx17, [], ba, bb, bc, bd) → new_rangeSize120(zx12, zx13, zx14, zx15, zx16, zx17, ba, bb, bc)
new_primPlusNat0(Zero, Zero) → Zero
new_index1211(zx626, zx627) → new_index1212(zx626, zx627, Succ(zx627))
new_primPlusInt15(Pos(zx4560), LT) → new_primPlusInt17(zx4560)
new_primPlusInt13(Pos(zx1270)) → Pos(new_primPlusNat1(zx1270, Zero))
new_index(zx64, zx67, ty_@0) → new_index9(zx64, zx67)
new_index7(zx64, zx67) → new_index60(zx64, zx67)
new_index1(zx81, zx83, app(app(ty_@2, gb), gc)) → new_index6(zx81, zx83, gb, gc)
new_primPlusInt21(zx151, zx1520, zx1530) → Pos(new_primPlusNat2(zx151, zx1520, zx1530))
new_primPlusInt(Pos(zx4590), False) → new_primPlusInt2(zx4590)
new_range1(zx400, zx410, app(app(ty_@2, hg), hh)) → new_range7(zx400, zx410, hg, hh)
new_rangeSize6(@2(GT, LT)) → Pos(Zero)
new_psPs1(:(zx1050, zx1051), zx88, bbh, bca, bcb) → :(zx1050, new_psPs1(zx1051, zx88, bbh, bca, bcb))
new_range1(zx400, zx410, ty_Ordering) → new_range11(zx400, zx410)
new_index85(zx30, zx31, Pos(Succ(zx16200)), zx129) → new_index88(zx30, zx31, Zero, zx16200, zx129)
new_index58(zx657, zx658, Zero, Zero) → new_index59(zx657, zx658)
new_ms(zx238, zx237) → new_primMinusInt(zx238, zx237)
new_range2(zx40, zx41, ty_@0) → new_range4(zx40, zx41)
new_rangeSize21(@2(Neg(Succ(zx3000)), Pos(zx310))) → new_ps7(new_index1214(Neg(Succ(zx3000)), Pos(zx310)))
new_range1(zx400, zx410, app(app(app(ty_@3, hd), he), hf)) → new_range6(zx400, zx410, hd, he, hf)
new_takeWhile17(zx487, zx488, Zero, Zero) → new_takeWhile18(zx487, zx488)
new_primPlusNat1(Succ(zx2450), zx15300) → Succ(Succ(new_primPlusNat0(zx2450, zx15300)))
new_index1214(Neg(Succ(zx6400)), Pos(Succ(zx6700))) → new_index1215(zx6400, zx6700, Succ(zx6700))
new_rangeSize9(zx137, zx138, ty_Ordering) → new_rangeSize6(@2(zx137, zx138))
new_takeWhile8(Integer(Pos(Succ(zx310000))), Integer(Pos(Zero))) → :(Integer(Pos(Zero)), new_takeWhile9(Succ(zx310000), new_primPlusInt13(Pos(Zero)), new_primPlusInt13(Pos(Zero))))
new_index56(zx708, zx709, Zero) → new_fromInteger(new_primMinusInt(Neg(Succ(zx709)), Neg(Succ(zx708))))
new_index515(zx531, zx532, Succ(zx5330)) → new_index515(zx531, zx532, zx5330)
new_primMinusNat0(Zero, Zero) → Pos(Zero)
new_rangeSize7(@2(Integer(Pos(Zero)), Integer(Neg(Zero)))) → new_ps7(new_index60(Integer(Pos(Zero)), Integer(Neg(Zero))))
new_rangeSize7(@2(Integer(Neg(Zero)), Integer(Pos(Zero)))) → new_ps7(new_index60(Integer(Neg(Zero)), Integer(Pos(Zero))))
new_fromEnum(Char(zx3000)) → Pos(zx3000)
new_range5(zx102, zx103, app(app(app(ty_@3, bfd), bfe), bff)) → new_range6(zx102, zx103, bfd, bfe, bff)
new_rangeSize7(@2(Integer(Pos(Zero)), Integer(Pos(Zero)))) → new_ps7(new_index60(Integer(Pos(Zero)), Integer(Pos(Zero))))
new_index4(@3(zx640, zx641, zx642), @3(zx670, zx671, zx672), cb, cc, cd) → new_ps6(zx642, zx672, zx641, zx671, zx640, zx670, cd, cc, cb)
new_primPlusInt15(Pos(zx4560), EQ) → new_primPlusInt17(zx4560)
new_takeWhile8(Integer(Neg(Zero)), Integer(Neg(Zero))) → :(Integer(Neg(Zero)), new_takeWhile20(new_primPlusInt13(Neg(Zero)), new_primPlusInt13(Neg(Zero))))
new_primPlusInt20(zx158, Succ(zx15900), Succ(zx16000)) → new_primMinusNat2(new_primMulNat0(zx15900, zx16000), zx16000, zx158)
new_takeWhile19(zx444, zx445, Zero, Zero) → new_takeWhile112(zx444, zx445)
new_range23(zx3000, zx3100, ty_Bool) → new_range12(zx3000, zx3100)
new_index0(zx82, zx84, app(app(app(ty_@3, fa), fb), fc)) → new_index4(zx82, zx84, fa, fb, fc)
new_primMinusNat3(zx16000, Succ(zx1580)) → new_primMinusNat0(zx16000, zx1580)
new_rangeSize115(zx81, zx82, zx83, zx84, ee, ef) → new_ps7(new_ps3(zx82, zx84, zx81, zx83, ef, ee))
new_takeWhile110(zx429, zx430, zx431, Zero, Zero) → new_takeWhile111(zx429, zx430, zx431)
new_takeWhile110(zx429, zx430, zx431, Zero, Succ(zx4330)) → new_takeWhile111(zx429, zx430, zx431)
new_foldr6(bbh, bca, bcb) → []
new_rangeSize118(zx291, zx292, :(zx2930, zx2931)) → new_ps7(new_index11(Pos(Succ(zx291)), Pos(Succ(zx292))))
new_range16(zx13, zx16, ty_Integer) → new_range8(zx13, zx16)
new_rangeSize119(zx62, zx63, zx64, zx65, zx66, zx67, [], [], be, bf, bg, bh, ca) → new_rangeSize120(zx62, zx63, zx64, zx65, zx66, zx67, be, bf, bg)
new_index13(GT, EQ) → new_error
new_range22(zx3000, zx3100, ty_Int) → new_range10(zx3000, zx3100)
new_range23(zx3000, zx3100, ty_@0) → new_range4(zx3000, zx3100)
new_index817(zx30, zx31, Succ(zx176000), Zero) → new_index89(zx30, zx31)
new_rangeSize111(zx385, zx386, Zero, Zero) → new_rangeSize112(zx385, zx386)
new_index816(zx30, zx31, Succ(zx130000), Zero, zx129) → new_index812(zx30, zx31, zx129)
new_takeWhile23(zx487, zx520, zx519) → new_takeWhile8(Integer(Neg(Succ(zx487))), Integer(zx519))
new_index1214(Neg(Zero), Pos(Zero)) → new_ms(Pos(Zero), Neg(Zero))
new_index1214(Pos(Zero), Neg(Zero)) → new_ms(Neg(Zero), Pos(Zero))
new_index510(Integer(Neg(Zero)), Integer(Pos(Succ(zx67000)))) → new_index513(zx67000, Succ(zx67000))
new_range19(zx26, zx28, ty_@0) → new_range4(zx26, zx28)
new_ps2new_primPlusInt13(Neg(Zero))
new_primPlusInt24(zx158, Pos(zx1590), Pos(zx1600)) → new_primPlusInt20(zx158, zx1590, zx1600)
new_index127(zx704, zx705, Zero) → new_ms(Neg(Succ(zx705)), Neg(Succ(zx704)))
new_primPlusInt13(Neg(Succ(zx12700))) → new_primMinusNat1(zx12700)
new_foldr9(zx109, [], bgf, bgg) → new_foldr10(bgf, bgg)
new_index1216(zx64, zx67) → new_index1214(zx64, zx67)
new_index1215(zx504, zx505, Succ(zx5060)) → new_index1215(zx504, zx505, zx5060)
new_primPlusInt15(Neg(zx4560), GT) → new_primPlusInt8(zx4560)
new_range5(zx102, zx103, ty_Int) → new_range10(zx102, zx103)
new_primMinusInt(Neg(zx2380), Pos(zx2370)) → Neg(new_primPlusNat0(zx2380, zx2370))
new_takeWhile7(Pos(Succ(zx31000)), Pos(Zero)) → :(Pos(Zero), new_takeWhile21(Succ(zx31000), new_ps0, new_ps0))
new_primPlusInt6(Pos(zx4740), GT) → new_primPlusInt10(zx4740)
new_range3(zx400, zx410, app(app(app(ty_@3, bce), bcf), bcg)) → new_range6(zx400, zx410, bce, bcf, bcg)
new_primPlusInt15(Neg(zx4560), LT) → new_primPlusInt16(zx4560)
new_rangeSize7(@2(Integer(Pos(Succ(zx30000))), Integer(Pos(Succ(zx31000))))) → new_rangeSize19(zx30000, zx31000, new_takeWhile19(zx31000, zx30000, zx30000, zx31000))
new_rangeSize7(@2(Integer(Neg(Succ(zx30000))), Integer(Neg(Succ(zx31000))))) → new_rangeSize111(zx30000, zx31000, zx31000, zx30000)
new_primPlusNat2(Zero, Zero, Zero) → new_primPlusNat5(Zero)
new_sum1(:(zx3620, zx3621)) → new_dsEm7(new_fromInt, zx3620, zx3621)
new_rangeSize21(@2(Pos(Zero), Pos(Succ(zx3100)))) → new_ps7(new_index1216(Pos(Zero), Pos(Succ(zx3100))))
new_primPlusInt10(zx4740) → new_primPlusInt12(zx4740)
new_index(zx64, zx67, ty_Char) → new_index10(zx64, zx67)
new_takeWhile8(Integer(Neg(zx31000)), Integer(Pos(Succ(zx300000)))) → []
new_foldr11(zx47, zx48, [], bba, bbb) → new_foldr10(bba, bbb)
new_range2(zx40, zx41, ty_Int) → new_range10(zx40, zx41)
new_primPlusInt18(Neg(zx4550), LT) → new_primPlusInt16(zx4550)
new_index513(zx568, Succ(zx5690)) → new_index513(zx568, zx5690)
new_rangeSize116(zx25, zx26, zx27, zx28, eb, ec) → Pos(Zero)
new_index1214(Pos(Succ(zx6400)), Pos(Succ(zx6700))) → new_index1210(zx6400, zx6700, zx6400, zx6700)
new_rangeSize20(zx137, zx138, ty_Bool) → new_rangeSize5(@2(zx137, zx138))
new_rangeSize21(@2(Pos(Zero), Neg(Succ(zx3100)))) → Pos(Zero)
new_enforceWHNF8(zx678, zx677, []) → new_foldl'0(zx677)
new_primPlusInt23(Zero, Zero, Zero) → new_primMinusNat1(Zero)
new_range23(zx3000, zx3100, app(app(app(ty_@3, bed), bee), bef)) → new_range20(zx3000, zx3100, bed, bee, bef)
new_index87(zx30, zx31, Pos(Zero), zx129) → new_index813(zx30, zx31, zx129)
new_primPlusNat2(Succ(zx1510), Succ(zx15200), Zero) → new_primPlusNat5(Succ(zx1510))
new_primPlusNat2(Succ(zx1510), Zero, Succ(zx15300)) → new_primPlusNat5(Succ(zx1510))
new_primPlusInt17(zx4550) → new_primPlusInt13(Pos(zx4550))
new_index86(zx30, zx31, zx13000, Neg(zx1630), zx129) → new_index88(zx30, zx31, zx1630, zx13000, zx129)
new_foldr5(zx144, zx145, :(zx1460, zx1461), baa, bab, bac) → new_psPs1(:(@3(zx144, zx145, zx1460), []), new_foldr5(zx144, zx145, zx1461, baa, bab, bac), baa, bab, bac)
new_primPlusInt11(zx4740) → new_primPlusInt7(zx4740)
new_rangeSize6(@2(EQ, EQ)) → new_ps7(new_index13(EQ, EQ))
new_rangeSize7(@2(Integer(Neg(Zero)), Integer(Neg(Succ(zx31000))))) → Pos(Zero)
new_takeWhile7(Pos(Succ(zx31000)), Pos(Succ(zx30000))) → new_takeWhile110(zx31000, zx30000, new_ps(zx30000), zx30000, zx31000)
new_index814(zx30, zx31) → new_index815(zx30, zx31)
new_takeWhile18(zx487, zx488) → :(Integer(Neg(Succ(zx488))), new_takeWhile23(zx487, new_primPlusInt13(Neg(Succ(zx488))), new_primPlusInt13(Neg(Succ(zx488)))))
new_index1210(zx626, zx627, Succ(zx6280), Succ(zx6290)) → new_index1210(zx626, zx627, zx6280, zx6290)
new_index821(zx30, zx31, Pos(Succ(zx17600)), Neg(zx1290)) → new_index89(zx30, zx31)
new_index58(zx657, zx658, Zero, Succ(zx6600)) → new_index59(zx657, zx658)
new_primIntToChar(Pos(zx3000)) → Char(zx3000)
new_range13(zx47, zx48, ty_Char) → new_range9(zx47, zx48)
new_primMinusInt(Neg(zx2380), Neg(zx2370)) → new_primMinusNat0(zx2370, zx2380)
new_range2(zx40, zx41, app(app(app(ty_@3, ha), hb), hc)) → new_range6(zx40, zx41, ha, hb, hc)
new_foldr10(bba, bbb) → []
new_index514(zx692, zx693, Succ(zx6940)) → new_index514(zx692, zx693, zx6940)
new_range9(zx300, zx310) → new_map0(new_enumFromTo(new_fromEnum(zx300), new_fromEnum(zx310)))
new_range6(@3(zx400, zx401, zx402), @3(zx410, zx411, zx412), ha, hb, hc) → new_foldr8(zx402, zx412, zx401, zx411, new_range1(zx400, zx410, ha), ha, hb, hc)
new_range16(zx13, zx16, app(app(app(ty_@3, bga), bgb), bgc)) → new_range20(zx13, zx16, bga, bgb, bgc)
new_rangeSize7(@2(Integer(Pos(Succ(zx30000))), Integer(Pos(Zero)))) → Pos(Zero)
new_takeWhile17(zx487, zx488, Succ(zx4890), Succ(zx4900)) → new_takeWhile17(zx487, zx488, zx4890, zx4900)
new_sum3(:(zx3640, zx3641)) → new_dsEm10(new_fromInt, zx3640, zx3641)
new_primMinusNat0(Zero, Succ(zx15800)) → Neg(Succ(zx15800))
new_primMinusNat5(zx1510, Succ(zx2320), zx15300) → new_primMinusNat3(zx1510, Succ(Succ(new_primPlusNat0(zx2320, zx15300))))
new_range2(zx40, zx41, ty_Bool) → new_range12(zx40, zx41)
new_primPlusInt2(zx4590) → new_primPlusInt3(zx4590)
new_takeWhile8(Integer(Neg(Succ(zx310000))), Integer(Pos(Zero))) → []
new_range3(zx400, zx410, ty_Integer) → new_range8(zx400, zx410)
new_takeWhile7(Pos(Succ(zx31000)), Neg(Zero)) → :(Neg(Zero), new_takeWhile21(Succ(zx31000), new_ps2, new_ps2))
new_rangeSize120(zx12, zx13, zx14, zx15, zx16, zx17, ba, bb, bc) → Pos(Zero)
new_rangeSize5(@2(False, True)) → new_ps7(new_index14(False, True))
new_takeWhile8(Integer(Pos(zx31000)), Integer(Neg(Succ(zx300000)))) → :(Integer(Neg(Succ(zx300000))), new_takeWhile9(zx31000, new_primPlusInt13(Neg(Succ(zx300000))), new_primPlusInt13(Neg(Succ(zx300000)))))
new_index84(zx30, zx31, zx13000, Pos(zx1610), zx129) → new_index811(zx30, zx31, zx13000, zx1610, zx129)
new_dsEm11(zx676, zx36111) → new_enforceWHNF5(zx676, zx676, zx36111)
new_range23(zx3000, zx3100, ty_Ordering) → new_range11(zx3000, zx3100)
new_primPlusInt20(zx158, Zero, Zero) → new_primMinusNat1(zx158)
new_psPs3new_foldr7
new_index816(zx30, zx31, Zero, Zero, zx129) → new_index813(zx30, zx31, zx129)
new_range3(zx400, zx410, app(app(ty_@2, bch), bda)) → new_range7(zx400, zx410, bch, bda)
new_rangeSize5(@2(True, False)) → Pos(Zero)
new_rangeSize9(zx137, zx138, ty_Bool) → new_rangeSize5(@2(zx137, zx138))
new_primPlusInt0(zx4590) → new_primPlusInt1(zx4590)
new_index821(zx30, zx31, Pos(Zero), Pos(Succ(zx12900))) → new_index820(zx30, zx31, Zero, zx12900)
new_primPlusInt14(Neg(zx4600), True) → new_primPlusInt4(zx4600)
new_index821(zx30, zx31, Neg(Succ(zx17600)), Pos(zx1290)) → new_index818(zx30, zx31)
new_rangeSize117(zx30, zx31, :(zx310, zx311)) → new_ps7(new_index10(zx30, zx31))
new_index816(zx30, zx31, Succ(zx130000), Succ(zx161000), zx129) → new_index816(zx30, zx31, zx130000, zx161000, zx129)
new_range16(zx13, zx16, ty_Ordering) → new_range11(zx13, zx16)
new_range5(zx102, zx103, ty_Integer) → new_range8(zx102, zx103)
new_enumFromTo(zx300, zx310) → new_takeWhile7(zx310, zx300)
new_primPlusNat4(Zero, zx15300) → new_primPlusNat0(Zero, Succ(zx15300))
new_primMinusInt(Pos(zx2380), Neg(zx2370)) → Pos(new_primPlusNat0(zx2380, zx2370))
new_sum3([]) → new_foldl'
new_rangeSize6(@2(GT, GT)) → new_ps7(new_index13(GT, GT))
new_index(zx64, zx67, ty_Int) → new_index11(zx64, zx67)
new_rangeSize9(zx137, zx138, ty_@0) → new_rangeSize3(@2(zx137, zx138))
new_range2(zx40, zx41, app(app(ty_@2, bcc), bcd)) → new_range7(zx40, zx41, bcc, bcd)
new_rangeSize21(@2(Pos(Succ(zx3000)), Pos(Succ(zx3100)))) → new_rangeSize118(zx3000, zx3100, new_takeWhile110(zx3100, zx3000, new_ps(zx3000), zx3000, zx3100))
new_range3(zx400, zx410, ty_Char) → new_range9(zx400, zx410)
new_primPlusInt(Neg(zx4590), True) → new_primPlusInt0(zx4590)
new_takeWhile8(Integer(Pos(Zero)), Integer(Pos(Succ(zx300000)))) → []
new_enforceWHNF7(zx664, zx663, []) → new_foldl'0(zx663)
new_rangeSize18(:(zx7110, zx7111)) → new_ps7(new_index13(GT, EQ))
new_index13(GT, GT) → new_sum1(new_range11(GT, GT))
new_enforceWHNF5(zx668, zx667, :(zx36110, zx36111)) → new_dsEm11(new_primPlusInt18(zx667, zx36110), zx36111)
new_index1214(Pos(Zero), Pos(Zero)) → new_ms(Pos(Zero), Pos(Zero))
new_rangeSize3(@2(@0, @0)) → new_ps7(Pos(Zero))
new_primPlusNat0(Succ(zx24500), Succ(zx153000)) → Succ(Succ(new_primPlusNat0(zx24500, zx153000)))
new_range3(zx400, zx410, ty_Int) → new_range10(zx400, zx410)
new_range1(zx400, zx410, ty_@0) → new_range4(zx400, zx410)
new_range22(zx3000, zx3100, ty_Char) → new_range9(zx3000, zx3100)
new_ps1(zx30000) → new_primPlusInt13(Neg(Succ(zx30000)))
new_range16(zx13, zx16, ty_Int) → new_range10(zx13, zx16)
new_index1210(zx626, zx627, Zero, Zero) → new_index1211(zx626, zx627)
new_rangeSize5(@2(True, True)) → new_ps7(new_index14(True, True))
new_rangeSize6(@2(LT, EQ)) → new_ps7(new_index13(LT, EQ))
new_primPlusInt26(Neg(zx1360), zx137, zx138, zx139, bgh) → new_primPlusInt24(zx1360, new_rangeSize20(zx137, zx138, bgh), zx139)
new_primPlusInt6(Pos(zx4740), LT) → new_primPlusInt9(zx4740)
new_index815(zx30, zx31) → new_ms(new_fromEnum(zx31), new_fromEnum(zx30))
new_index1214(Pos(Zero), Pos(Succ(zx6700))) → new_index1213(zx6700, Succ(zx6700))
new_dsEm7(zx456, zx3620, zx3621) → new_enforceWHNF6(new_primPlusInt15(zx456, zx3620), new_primPlusInt15(zx456, zx3620), zx3621)
new_range16(zx13, zx16, ty_Char) → new_range9(zx13, zx16)
new_primPlusInt18(Pos(zx4550), LT) → new_primPlusInt17(zx4550)
new_takeWhile113(zx435, zx436, zx437, Zero, Succ(zx4390)) → new_takeWhile114(zx435, zx436, zx437)
new_primPlusInt13(Neg(Zero)) → Pos(Succ(Zero))
new_dsEm6(zx679, zx36211) → new_enforceWHNF6(zx679, zx679, zx36211)
new_index1212(zx700, zx701, Zero) → new_ms(Pos(Succ(zx701)), Pos(Succ(zx700)))
new_index83(zx30, zx31, Pos(Succ(zx13000)), zx129) → new_index84(zx30, zx31, zx13000, new_fromEnum(zx31), zx129)
new_dsEm9(zx460, zx3780, zx3781) → new_enforceWHNF4(new_primPlusInt14(zx460, zx3780), new_primPlusInt14(zx460, zx3780), zx3781)
new_index13(LT, EQ) → new_sum(new_range11(LT, EQ))
new_primPlusInt23(Succ(zx1510), Succ(zx15200), Succ(zx15300)) → new_primMinusNat5(zx1510, new_primMulNat0(zx15200, zx15300), zx15300)
new_range8(zx300, zx310) → new_takeWhile8(zx310, zx300)
new_primPlusNat2(Zero, Succ(zx15200), Succ(zx15300)) → new_primPlusNat4(new_primMulNat0(zx15200, zx15300), zx15300)
new_primPlusInt16(zx4550) → new_primPlusInt13(Neg(zx4550))
new_index1214(Neg(Zero), Neg(Succ(zx6700))) → new_error
new_sum2(:(zx3780, zx3781)) → new_dsEm9(new_fromInt, zx3780, zx3781)
new_rangeSize9(zx137, zx138, ty_Integer) → new_rangeSize7(@2(zx137, zx138))
new_index819(zx30, zx31, zx17600, Zero) → new_index89(zx30, zx31)
new_index13(GT, LT) → new_error
new_takeWhile7(Neg(Succ(zx31000)), Neg(Succ(zx30000))) → new_takeWhile113(zx31000, zx30000, new_ps1(zx30000), zx31000, zx30000)
new_errorerror([])
new_index(zx64, zx67, ty_Ordering) → new_index13(zx64, zx67)
new_primPlusInt22(zx151, Neg(zx1520), Neg(zx1530)) → new_primPlusInt21(zx151, zx1520, zx1530)
new_foldr8(zx38, zx39, zx40, zx41, [], bbh, bca, bcb) → new_foldr6(bbh, bca, bcb)
new_rangeSize113(zx62, zx63, zx64, zx65, zx66, zx67, be, bf, bg) → new_ps7(new_ps6(zx64, zx67, zx63, zx66, zx62, zx65, bg, bf, be))
new_rangeSize18([]) → Pos(Zero)
new_foldl'0(zx663) → zx663
new_sum(:(zx3610, zx3611)) → new_dsEm4(new_fromInt, zx3610, zx3611)
new_index85(zx30, zx31, Pos(Zero), zx129) → new_index813(zx30, zx31, zx129)
new_index1214(Pos(Succ(zx6400)), Pos(Zero)) → new_error
new_primPlusInt23(Zero, Succ(zx15200), Succ(zx15300)) → new_primMinusNat1(new_primPlusNat1(new_primMulNat0(zx15200, zx15300), zx15300))
new_primPlusInt12(zx4740) → new_primPlusInt5(zx4740)
new_rangeSize4(@2(@2(zx300, zx301), @2(zx310, zx311)), dh, ea) → new_rangeSize110(zx300, zx301, zx310, zx311, new_range18(zx300, zx310, dh), dh, ea, dh)
new_range19(zx26, zx28, ty_Integer) → new_range8(zx26, zx28)
new_index511(zx652, zx653, Zero, Succ(zx6550)) → new_index512(zx652, zx653)
new_range18(zx300, zx310, ty_Int) → new_range10(zx300, zx310)
new_index1(zx81, zx83, ty_Int) → new_index11(zx81, zx83)
new_primMinusNat1(Succ(zx127000)) → Neg(Succ(zx127000))
new_index821(zx30, zx31, Pos(Succ(zx17600)), Pos(zx1290)) → new_index819(zx30, zx31, zx17600, zx1290)
new_primMinusNat4(zx1510) → Pos(Succ(zx1510))
new_primPlusInt18(Pos(zx4550), GT) → new_primPlusInt10(zx4550)
new_index(zx64, zx67, app(app(app(ty_@3, cb), cc), cd)) → new_index4(zx64, zx67, cb, cc, cd)
new_primPlusNat3(zx1510, Zero, zx15300) → new_primPlusNat1(Succ(zx1510), zx15300)
new_range22(zx3000, zx3100, ty_Ordering) → new_range11(zx3000, zx3100)
new_index59(zx657, zx658) → new_index56(zx657, zx658, Succ(zx658))
new_index13(EQ, GT) → new_sum1(new_range11(EQ, GT))
new_index85(zx30, zx31, Neg(Succ(zx16200)), zx129) → new_index812(zx30, zx31, zx129)
new_enforceWHNF7(zx664, zx663, :(zx36010, zx36011)) → new_dsEm8(new_primPlusInt6(zx663, zx36010), zx36011)
new_fromIntPos(Zero)
new_index85(zx30, zx31, Neg(Zero), zx129) → new_index813(zx30, zx31, zx129)
new_range11(EQ, LT) → new_foldr7
new_primMinusNat0(Succ(zx160000), Succ(zx15800)) → new_primMinusNat0(zx160000, zx15800)

The set Q consists of the following terms:

new_range22(x0, x1, ty_Char)
new_primPlusInt2(x0)
new_foldr10(x0, x1)
new_rangeSize20(x0, x1, ty_Int)
new_index(x0, x1, ty_Integer)
new_foldr12
new_range22(x0, x1, app(app(app(ty_@3, x2), x3), x4))
new_rangeSize118(x0, x1, :(x2, x3))
new_index81(x0, x1, x2)
new_sum([])
new_primPlusInt15(Pos(x0), EQ)
new_psPs1([], x0, x1, x2, x3)
new_rangeSize9(x0, x1, ty_Integer)
new_primMinusNat0(Zero, Zero)
new_index(x0, x1, ty_@0)
new_index1(x0, x1, ty_Char)
new_rangeSize17(x0, x1, :(x2, x3))
new_index13(EQ, EQ)
new_takeWhile8(Integer(Pos(x0)), Integer(Neg(Succ(x1))))
new_takeWhile8(Integer(Neg(x0)), Integer(Pos(Succ(x1))))
new_index1(x0, x1, app(app(ty_@2, x2), x3))
new_index1213(x0, Succ(x1))
new_range1(x0, x1, ty_Integer)
new_takeWhile110(x0, x1, x2, Zero, Succ(x3))
new_index1210(x0, x1, Succ(x2), Zero)
new_range17(x0, x1, app(app(ty_@2, x2), x3))
new_takeWhile23(x0, x1, x2)
new_rangeSize9(x0, x1, ty_Bool)
new_rangeSize17(x0, x1, [])
new_index818(x0, x1)
new_takeWhile7(Pos(Succ(x0)), Neg(Zero))
new_takeWhile7(Neg(Succ(x0)), Pos(Zero))
new_primPlusInt7(x0)
new_index128(x0, x1, Zero, Succ(x2))
new_rangeSize21(@2(Pos(Succ(x0)), Pos(Succ(x1))))
new_primPlusInt22(x0, Neg(x1), Neg(x2))
new_range11(GT, GT)
new_rangeSize111(x0, x1, Succ(x2), Zero)
new_primPlusInt20(x0, Zero, Zero)
new_primPlusInt3(x0)
new_index513(x0, Zero)
new_primPlusInt20(x0, Succ(x1), Zero)
new_range11(GT, EQ)
new_range11(EQ, GT)
new_range1(x0, x1, ty_Bool)
new_range11(EQ, LT)
new_range11(LT, EQ)
new_range18(x0, x1, app(app(app(ty_@3, x2), x3), x4))
new_range12(True, False)
new_range12(False, True)
new_rangeSize7(@2(Integer(Neg(Zero)), Integer(Neg(Succ(x0)))))
new_index58(x0, x1, Succ(x2), Zero)
new_primPlusInt13(Pos(x0))
new_range19(x0, x1, ty_@0)
new_index820(x0, x1, Zero, x2)
new_range1(x0, x1, app(app(ty_@2, x2), x3))
new_sum0([])
new_index0(x0, x1, ty_Integer)
new_index0(x0, x1, ty_Bool)
new_primPlusInt5(x0)
new_rangeSize7(@2(Integer(Neg(Succ(x0))), Integer(Neg(Zero))))
new_sum2([])
new_primPlusInt11(x0)
new_primPlusInt4(x0)
new_primMinusNat0(Succ(x0), Succ(x1))
new_primPlusInt17(x0)
new_index510(Integer(Pos(Zero)), Integer(Pos(Succ(x0))))
new_rangeSize16(x0, x1, x2, x3, x4, x5, :(x6, x7), x8, x9, x10, x11)
new_range16(x0, x1, ty_Ordering)
new_range23(x0, x1, app(app(ty_@2, x2), x3))
new_range4(@0, @0)
new_range17(x0, x1, app(app(app(ty_@3, x2), x3), x4))
new_rangeSize19(x0, x1, :(x2, x3))
new_range22(x0, x1, app(app(ty_@2, x2), x3))
new_index1216(x0, x1)
new_index511(x0, x1, Zero, Zero)
new_foldr8(x0, x1, x2, x3, :(x4, x5), x6, x7, x8)
new_index816(x0, x1, Succ(x2), Zero, x3)
new_rangeSize9(x0, x1, ty_Int)
new_rangeSize20(x0, x1, ty_@0)
new_enforceWHNF4(x0, x1, :(x2, x3))
new_index510(Integer(Pos(Succ(x0))), Integer(Pos(Zero)))
new_index514(x0, x1, Zero)
new_psPs2([], x0, x1, x2)
new_range23(x0, x1, app(app(app(ty_@3, x2), x3), x4))
new_primMulNat0(Zero, x0)
new_index1215(x0, x1, Zero)
new_index127(x0, x1, Succ(x2))
new_index128(x0, x1, Succ(x2), Succ(x3))
new_enforceWHNF4(x0, x1, [])
new_index1214(Pos(Succ(x0)), Pos(Succ(x1)))
new_primPlusInt15(Neg(x0), EQ)
new_rangeSize119(x0, x1, x2, x3, x4, x5, :(x6, x7), x8, x9, x10, x11, x12, x13)
new_rangeSize7(@2(Integer(Pos(Succ(x0))), Integer(Pos(Succ(x1)))))
new_index13(LT, LT)
new_index1214(Neg(Zero), Pos(Zero))
new_index1214(Pos(Zero), Neg(Zero))
new_index14(True, True)
new_enforceWHNF8(x0, x1, [])
new_primPlusNat0(Zero, Succ(x0))
new_index129(x0, Zero)
new_index512(x0, x1)
new_index1214(Neg(Succ(x0)), Neg(Succ(x1)))
new_primPlusInt(Pos(x0), True)
new_rangeSize21(@2(Neg(Succ(x0)), Neg(Succ(x1))))
new_rangeSize113(x0, x1, x2, x3, x4, x5, x6, x7, x8)
new_primPlusInt(Neg(x0), True)
new_index821(x0, x1, Neg(Succ(x2)), Pos(x3))
new_index821(x0, x1, Pos(Succ(x2)), Neg(x3))
new_index57(x0, Zero)
new_dsEm9(x0, x1, x2)
new_primPlusNat3(x0, Zero, x1)
new_index1(x0, x1, ty_Ordering)
new_rangeSize7(@2(Integer(Neg(Zero)), Integer(Neg(Zero))))
new_takeWhile20(x0, x1)
new_range19(x0, x1, app(app(app(ty_@3, x2), x3), x4))
new_range16(x0, x1, ty_Integer)
new_index0(x0, x1, app(app(app(ty_@3, x2), x3), x4))
new_range23(x0, x1, ty_Integer)
new_index1217(x0, x1)
new_range2(x0, x1, ty_Integer)
new_primPlusNat2(Succ(x0), Succ(x1), Succ(x2))
new_rangeSize117(x0, x1, [])
new_index817(x0, x1, Succ(x2), Succ(x3))
new_takeWhile8(Integer(Neg(Succ(x0))), Integer(Pos(Zero)))
new_takeWhile8(Integer(Pos(Succ(x0))), Integer(Neg(Zero)))
new_primPlusInt23(Succ(x0), Zero, Zero)
new_index83(x0, x1, Neg(Succ(x2)), x3)
new_takeWhile21(x0, x1, x2)
new_range3(x0, x1, app(app(ty_@2, x2), x3))
new_index88(x0, x1, Zero, x2, x3)
new_takeWhile7(Pos(Zero), Neg(Zero))
new_takeWhile7(Neg(Zero), Pos(Zero))
new_index510(Integer(Neg(Succ(x0))), Integer(Pos(Zero)))
new_range12(False, False)
new_rangeSize116(x0, x1, x2, x3, x4, x5)
new_rangeSize7(@2(Integer(Pos(Zero)), Integer(Pos(Succ(x0)))))
new_range1(x0, x1, ty_Int)
new_index0(x0, x1, ty_@0)
new_range2(x0, x1, ty_@0)
new_dsEm11(x0, x1)
new_range19(x0, x1, ty_Char)
new_fromEnum(Char(x0))
new_rangeSize119(x0, x1, x2, x3, x4, x5, [], :(x6, x7), x8, x9, x10, x11, x12)
new_range3(x0, x1, ty_Ordering)
new_index1214(Pos(Zero), Neg(Succ(x0)))
new_index510(Integer(Neg(Zero)), Integer(Neg(Succ(x0))))
new_index1214(Neg(Zero), Pos(Succ(x0)))
new_takeWhile8(Integer(Neg(Zero)), Integer(Neg(Zero)))
new_range17(x0, x1, ty_Int)
new_range13(x0, x1, ty_Ordering)
new_index819(x0, x1, x2, Succ(x3))
new_range2(x0, x1, ty_Char)
new_foldr6(x0, x1, x2)
new_index0(x0, x1, app(app(ty_@2, x2), x3))
new_primPlusNat2(Succ(x0), Zero, Succ(x1))
new_takeWhile113(x0, x1, x2, Succ(x3), Succ(x4))
new_primPlusInt6(Pos(x0), LT)
new_index127(x0, x1, Zero)
new_rangeSize18([])
new_index510(Integer(Neg(Zero)), Integer(Neg(Zero)))
new_fromInteger(x0)
new_primPlusInt20(x0, Zero, Succ(x1))
new_primPlusNat2(Succ(x0), Zero, Zero)
new_takeWhile7(Pos(Zero), Pos(Zero))
new_seq(x0, x1, x2, x3)
new_primPlusInt23(Succ(x0), Succ(x1), Succ(x2))
new_error
new_dsEm7(x0, x1, x2)
new_index816(x0, x1, Zero, Zero, x2)
new_takeWhile110(x0, x1, x2, Succ(x3), Zero)
new_rangeSize111(x0, x1, Succ(x2), Succ(x3))
new_index0(x0, x1, ty_Char)
new_takeWhile8(Integer(Neg(Succ(x0))), Integer(Neg(Zero)))
new_rangeSize21(@2(Pos(Zero), Pos(Succ(x0))))
new_takeWhile7(Neg(Zero), Neg(Succ(x0)))
new_range19(x0, x1, app(app(ty_@2, x2), x3))
new_primMinusNat2(Succ(x0), x1, Zero)
new_takeWhile110(x0, x1, x2, Zero, Zero)
new_range13(x0, x1, ty_@0)
new_takeWhile7(Neg(Succ(x0)), Neg(Zero))
new_takeWhile19(x0, x1, Zero, Succ(x2))
new_range16(x0, x1, app(app(app(ty_@3, x2), x3), x4))
new_rangeSize119(x0, x1, x2, x3, x4, x5, [], [], x6, x7, x8, x9, x10)
new_range17(x0, x1, ty_Integer)
new_primPlusInt13(Neg(Succ(x0)))
new_index13(LT, EQ)
new_primPlusInt15(Neg(x0), GT)
new_index13(EQ, LT)
new_foldr11(x0, x1, [], x2, x3)
new_index85(x0, x1, Neg(Succ(x2)), x3)
new_primPlusInt23(Succ(x0), Succ(x1), Zero)
new_takeWhile7(Pos(x0), Neg(Succ(x1)))
new_takeWhile7(Neg(x0), Pos(Succ(x1)))
new_primPlusInt14(Neg(x0), True)
new_index511(x0, x1, Succ(x2), Succ(x3))
new_index1(x0, x1, app(app(app(ty_@3, x2), x3), x4))
new_takeWhile110(x0, x1, x2, Succ(x3), Succ(x4))
new_primMinusNat1(Zero)
new_range11(EQ, EQ)
new_index816(x0, x1, Zero, Succ(x2), x3)
new_primMinusNat3(x0, Zero)
new_map0(:(x0, x1))
new_ps3(x0, x1, x2, x3, x4, x5)
new_index7(x0, x1)
new_primPlusInt14(Pos(x0), True)
new_index13(EQ, GT)
new_rangeSize5(@2(True, False))
new_rangeSize5(@2(False, True))
new_range6(@3(x0, x1, x2), @3(x3, x4, x5), x6, x7, x8)
new_index13(GT, EQ)
new_takeWhile7(Pos(Zero), Pos(Succ(x0)))
new_enforceWHNF5(x0, x1, :(x2, x3))
new_rangeSize20(x0, x1, ty_Integer)
new_takeWhile113(x0, x1, x2, Zero, Zero)
new_primPlusInt6(Pos(x0), GT)
new_index811(x0, x1, x2, Succ(x3), x4)
new_primPlusInt(Pos(x0), False)
new_index510(Integer(Neg(Zero)), Integer(Pos(Succ(x0))))
new_index510(Integer(Pos(Zero)), Integer(Neg(Succ(x0))))
new_primPlusNat0(Succ(x0), Zero)
new_range9(x0, x1)
new_primPlusInt6(Neg(x0), GT)
new_primPlusNat0(Succ(x0), Succ(x1))
new_range23(x0, x1, ty_Int)
new_index14(False, False)
new_range3(x0, x1, ty_Bool)
new_index13(GT, LT)
new_index13(LT, GT)
new_rangeSize21(@2(Neg(Zero), Neg(Zero)))
new_range11(LT, LT)
new_foldr5(x0, x1, [], x2, x3, x4)
new_primIntToChar(Pos(x0))
new_rangeSize6(@2(GT, GT))
new_index1214(Pos(Zero), Pos(Succ(x0)))
new_takeWhile17(x0, x1, Zero, Succ(x2))
new_range22(x0, x1, ty_Int)
new_index87(x0, x1, Neg(Succ(x2)), x3)
new_sum(:(x0, x1))
new_primPlusInt10(x0)
new_primPlusInt21(x0, x1, x2)
new_takeWhile19(x0, x1, Succ(x2), Succ(x3))
new_primPlusInt(Neg(x0), False)
new_rangeSize9(x0, x1, ty_Char)
new_primPlusInt22(x0, Pos(x1), Pos(x2))
new_rangeSize21(@2(Neg(Zero), Neg(Succ(x0))))
new_primPlusInt20(x0, Succ(x1), Succ(x2))
new_ps(x0)
new_primMinusInt(Pos(x0), Pos(x1))
new_range1(x0, x1, ty_Char)
new_range20(@3(x0, x1, x2), @3(x3, x4, x5), x6, x7, x8)
new_dsEm12(x0, x1)
new_range19(x0, x1, ty_Bool)
new_index1214(Neg(Zero), Neg(Zero))
new_range1(x0, x1, ty_Ordering)
new_index87(x0, x1, Pos(Succ(x2)), x3)
new_primPlusInt18(Pos(x0), LT)
new_rangeSize114(x0, x1, x2, x3, [], [], x4, x5, x6, x7)
new_primPlusNat0(Zero, Zero)
new_index86(x0, x1, x2, Pos(x3), x4)
new_ps2
new_foldr4(x0, x1, x2, [], x3, x4, x5)
new_rangeSize114(x0, x1, x2, x3, [], :(x4, x5), x6, x7, x8, x9)
new_index0(x0, x1, ty_Ordering)
new_rangeSize6(@2(LT, LT))
new_rangeSize114(x0, x1, x2, x3, :(x4, x5), x6, x7, x8, x9, x10)
new_index83(x0, x1, Neg(Zero), x2)
new_index56(x0, x1, Zero)
new_rangeSize6(@2(GT, EQ))
new_rangeSize6(@2(EQ, GT))
new_rangeSize19(x0, x1, [])
new_takeWhile8(Integer(Pos(Zero)), Integer(Neg(Zero)))
new_takeWhile8(Integer(Neg(Zero)), Integer(Pos(Zero)))
new_range13(x0, x1, ty_Int)
new_primPlusInt15(Pos(x0), GT)
new_rangeSize5(@2(True, True))
new_primPlusNat2(Succ(x0), Succ(x1), Zero)
new_index1210(x0, x1, Zero, Zero)
new_rangeSize9(x0, x1, app(app(app(ty_@3, x2), x3), x4))
new_rangeSize21(@2(Neg(Succ(x0)), Neg(Zero)))
new_takeWhile7(Neg(Succ(x0)), Neg(Succ(x1)))
new_rangeSize7(@2(Integer(Pos(Zero)), Integer(Neg(Succ(x0)))))
new_rangeSize7(@2(Integer(Neg(Zero)), Integer(Pos(Succ(x0)))))
new_takeWhile8(Integer(Neg(Succ(x0))), Integer(Neg(Succ(x1))))
new_primMinusNat4(x0)
new_takeWhile8(Integer(Pos(Zero)), Integer(Pos(Zero)))
new_dsEm10(x0, x1, x2)
new_enforceWHNF7(x0, x1, [])
new_takeWhile19(x0, x1, Succ(x2), Zero)
new_rangeSize2(@2(@3(x0, x1, x2), @3(x3, x4, x5)), x6, x7, x8)
new_range23(x0, x1, ty_Ordering)
new_primPlusInt18(Neg(x0), GT)
new_index57(x0, Succ(x1))
new_index510(Integer(Pos(Zero)), Integer(Pos(Zero)))
new_index821(x0, x1, Neg(Zero), Pos(Succ(x2)))
new_index821(x0, x1, Pos(Zero), Neg(Succ(x2)))
new_range3(x0, x1, ty_Integer)
new_index811(x0, x1, x2, Zero, x3)
new_primPlusInt18(Neg(x0), LT)
new_rangeSize21(@2(Neg(Zero), Pos(Zero)))
new_rangeSize21(@2(Pos(Zero), Neg(Zero)))
new_rangeSize7(@2(Integer(Pos(Succ(x0))), Integer(Neg(x1))))
new_rangeSize7(@2(Integer(Neg(Succ(x0))), Integer(Pos(x1))))
new_rangeSize6(@2(LT, GT))
new_rangeSize6(@2(GT, LT))
new_primPlusNat3(x0, Succ(x1), x2)
new_foldr9(x0, :(x1, x2), x3, x4)
new_rangeSize112(x0, x1)
new_rangeSize118(x0, x1, [])
new_rangeSize9(x0, x1, app(app(ty_@2, x2), x3))
new_takeWhile17(x0, x1, Succ(x2), Zero)
new_rangeSize7(@2(Integer(Pos(Zero)), Integer(Pos(Zero))))
new_index817(x0, x1, Zero, Succ(x2))
new_rangeSize7(@2(Integer(Pos(Zero)), Integer(Neg(Zero))))
new_rangeSize7(@2(Integer(Neg(Zero)), Integer(Pos(Zero))))
new_range7(@2(x0, x1), @2(x2, x3), x4, x5)
new_index821(x0, x1, Neg(Zero), Neg(Succ(x2)))
new_index511(x0, x1, Succ(x2), Zero)
new_range23(x0, x1, ty_@0)
new_index1214(Pos(Zero), Pos(Zero))
new_enforceWHNF8(x0, x1, :(x2, x3))
new_index1214(Pos(Succ(x0)), Neg(x1))
new_primPlusInt23(Zero, Succ(x0), Zero)
new_primPlusInt18(Pos(x0), EQ)
new_primPlusInt26(Neg(x0), x1, x2, x3, x4)
new_primPlusNat5(Zero)
new_primMinusNat2(Succ(x0), x1, Succ(x2))
new_index4(@3(x0, x1, x2), @3(x3, x4, x5), x6, x7, x8)
new_rangeSize7(@2(Integer(Pos(Succ(x0))), Integer(Pos(Zero))))
new_takeWhile7(Pos(Succ(x0)), Pos(Succ(x1)))
new_foldr8(x0, x1, x2, x3, [], x4, x5, x6)
new_index1212(x0, x1, Succ(x2))
new_index510(Integer(Neg(Succ(x0))), Integer(Neg(Zero)))
new_takeWhile7(Neg(Zero), Neg(Zero))
new_index812(x0, x1, x2)
new_index85(x0, x1, Pos(Succ(x2)), x3)
new_index1211(x0, x1)
new_index816(x0, x1, Succ(x2), Succ(x3), x4)
new_range2(x0, x1, app(app(ty_@2, x2), x3))
new_range23(x0, x1, ty_Bool)
new_range17(x0, x1, ty_Bool)
new_index0(x0, x1, ty_Int)
new_rangeSize20(x0, x1, ty_Bool)
new_index514(x0, x1, Succ(x2))
new_index1214(Neg(Succ(x0)), Pos(Succ(x1)))
new_enumFromTo(x0, x1)
new_rangeSize5(@2(False, False))
new_index515(x0, x1, Zero)
new_sum3([])
new_primPlusInt0(x0)
new_primPlusInt23(Zero, Zero, Zero)
new_takeWhile17(x0, x1, Succ(x2), Succ(x3))
new_index1214(Pos(Succ(x0)), Pos(Zero))
new_range12(True, True)
new_index511(x0, x1, Zero, Succ(x2))
new_index814(x0, x1)
new_index821(x0, x1, Neg(Zero), Neg(Zero))
new_range5(x0, x1, ty_Bool)
new_rangeSize3(@2(@0, @0))
new_primPlusInt24(x0, Pos(x1), Neg(x2))
new_primPlusInt24(x0, Neg(x1), Pos(x2))
new_takeWhile111(x0, x1, x2)
new_range22(x0, x1, ty_@0)
new_primMinusNat3(x0, Succ(x1))
new_primPlusNat2(Zero, Succ(x0), Succ(x1))
new_psPs2(:(x0, x1), x2, x3, x4)
new_range18(x0, x1, app(app(ty_@2, x2), x3))
new_primPlusInt23(Zero, Succ(x0), Succ(x1))
new_range5(x0, x1, ty_Integer)
new_index59(x0, x1)
new_range19(x0, x1, ty_Integer)
new_index813(x0, x1, x2)
new_ms(x0, x1)
new_range22(x0, x1, ty_Ordering)
new_index1(x0, x1, ty_Integer)
new_primMinusNat1(Succ(x0))
new_index129(x0, Succ(x1))
new_primPlusInt23(Succ(x0), Zero, Succ(x1))
new_takeWhile17(x0, x1, Zero, Zero)
new_range5(x0, x1, ty_Char)
new_range13(x0, x1, app(app(app(ty_@3, x2), x3), x4))
new_index(x0, x1, ty_Int)
new_foldr7
new_range18(x0, x1, ty_Char)
new_range10(x0, x1)
new_rangeSize20(x0, x1, app(app(ty_@2, x2), x3))
new_sum2(:(x0, x1))
new_primPlusInt13(Neg(Zero))
new_index(x0, x1, app(app(app(ty_@3, x2), x3), x4))
new_index515(x0, x1, Succ(x2))
new_primPlusNat1(Succ(x0), x1)
new_range2(x0, x1, ty_Ordering)
new_index821(x0, x1, Neg(Succ(x2)), Neg(x3))
new_primIntToChar(Neg(Zero))
new_range17(x0, x1, ty_@0)
new_index(x0, x1, app(app(ty_@2, x2), x3))
new_index9(@0, @0)
new_primPlusNat2(Zero, Succ(x0), Zero)
new_index820(x0, x1, Succ(x2), x3)
new_index128(x0, x1, Zero, Zero)
new_range18(x0, x1, ty_Int)
new_index85(x0, x1, Neg(Zero), x2)
new_rangeSize8(@2(x0, x1))
new_range21(@2(x0, x1), @2(x2, x3), x4, x5)
new_index85(x0, x1, Pos(Zero), x2)
new_index84(x0, x1, x2, Neg(x3), x4)
new_index88(x0, x1, Succ(x2), x3, x4)
new_primPlusInt16(x0)
new_enforceWHNF5(x0, x1, [])
new_takeWhile114(x0, x1, x2)
new_primPlusInt26(Pos(x0), x1, x2, x3, x4)
new_range3(x0, x1, app(app(app(ty_@3, x2), x3), x4))
new_enforceWHNF6(x0, x1, [])
new_ps7(x0)
new_foldl'
new_range17(x0, x1, ty_Ordering)
new_enforceWHNF7(x0, x1, :(x2, x3))
new_range18(x0, x1, ty_Ordering)
new_index821(x0, x1, Pos(Zero), Pos(Succ(x2)))
new_rangeSize16(x0, x1, x2, x3, x4, x5, [], x6, x7, x8, x9)
new_primPlusNat2(Zero, Zero, Zero)
new_index510(Integer(Pos(Succ(x0))), Integer(Neg(x1)))
new_primPlusInt18(Pos(x0), GT)
new_primPlusInt14(Neg(x0), False)
new_index1215(x0, x1, Succ(x2))
new_primPlusInt14(Pos(x0), False)
new_rangeSize9(x0, x1, ty_Ordering)
new_index86(x0, x1, x2, Neg(x3), x4)
new_primPlusInt18(Neg(x0), EQ)
new_rangeSize21(@2(Pos(Succ(x0)), Pos(Zero)))
new_sum1([])
new_index821(x0, x1, Pos(Succ(x2)), Pos(x3))
new_takeWhile8(Integer(Pos(Zero)), Integer(Pos(Succ(x0))))
new_index817(x0, x1, Succ(x2), Zero)
new_primPlusInt9(x0)
new_range23(x0, x1, ty_Char)
new_foldr4(x0, x1, x2, :(x3, x4), x5, x6, x7)
new_index(x0, x1, ty_Bool)
new_foldr11(x0, x1, :(x2, x3), x4, x5)
new_ps6(x0, x1, x2, x3, x4, x5, x6, x7, x8)
new_index82(x0, x1, x2)
new_range5(x0, x1, ty_Ordering)
new_index89(x0, x1)
new_index11(x0, x1)
new_index1212(x0, x1, Zero)
new_dsEm8(x0, x1)
new_index821(x0, x1, Pos(Zero), Pos(Zero))
new_range13(x0, x1, ty_Integer)
new_rangeSize9(x0, x1, ty_@0)
new_rangeSize7(@2(Integer(Neg(Succ(x0))), Integer(Neg(Succ(x1)))))
new_range3(x0, x1, ty_@0)
new_primPlusInt12(x0)
new_primMulNat0(Succ(x0), x1)
new_range3(x0, x1, ty_Int)
new_psPs1(:(x0, x1), x2, x3, x4, x5)
new_primPlusInt23(Zero, Zero, Succ(x0))
new_primPlusInt8(x0)
new_takeWhile22(x0, x1)
new_index(x0, x1, ty_Ordering)
new_index819(x0, x1, x2, Zero)
new_index84(x0, x1, x2, Pos(x3), x4)
new_primPlusInt24(x0, Neg(x1), Neg(x2))
new_index83(x0, x1, Pos(Zero), x2)
new_rangeSize111(x0, x1, Zero, Zero)
new_index1(x0, x1, ty_@0)
new_index1214(Neg(Succ(x0)), Neg(Zero))
new_rangeSize120(x0, x1, x2, x3, x4, x5, x6, x7, x8)
new_rangeSize111(x0, x1, Zero, Succ(x2))
new_primPlusNat2(Zero, Zero, Succ(x0))
new_primPlusInt6(Pos(x0), EQ)
new_primMinusNat0(Succ(x0), Zero)
new_takeWhile8(Integer(Pos(Succ(x0))), Integer(Pos(Zero)))
new_primPlusInt25(x0, x1, x2)
new_primIntToChar(Neg(Succ(x0)))
new_ps1(x0)
new_range13(x0, x1, ty_Bool)
new_range5(x0, x1, app(app(app(ty_@3, x2), x3), x4))
new_primPlusInt1(x0)
new_dsEm4(x0, x1, x2)
new_range11(LT, GT)
new_index510(Integer(Neg(Zero)), Integer(Pos(Zero)))
new_index510(Integer(Pos(Zero)), Integer(Neg(Zero)))
new_range11(GT, LT)
new_primMinusNat0(Zero, Succ(x0))
new_range19(x0, x1, ty_Ordering)
new_rangeSize110(x0, x1, x2, x3, :(x4, x5), x6, x7, x8)
new_index513(x0, Succ(x1))
new_index1(x0, x1, ty_Bool)
new_index14(True, False)
new_index14(False, True)
new_fromInt
new_sum1(:(x0, x1))
new_primMinusNat2(Zero, x0, x1)
new_primPlusInt15(Pos(x0), LT)
new_primPlusNat1(Zero, x0)
new_takeWhile8(Integer(Neg(Zero)), Integer(Neg(Succ(x0))))
new_primMinusInt(Pos(x0), Neg(x1))
new_primMinusInt(Neg(x0), Pos(x1))
new_index1214(Neg(Zero), Neg(Succ(x0)))
new_ps0
new_range16(x0, x1, ty_Int)
new_primMinusNat5(x0, Zero, x1)
new_index56(x0, x1, Succ(x2))
new_range2(x0, x1, app(app(app(ty_@3, x2), x3), x4))
new_range16(x0, x1, ty_Bool)
new_rangeSize20(x0, x1, ty_Ordering)
new_index1210(x0, x1, Succ(x2), Succ(x3))
new_takeWhile113(x0, x1, x2, Succ(x3), Zero)
new_index83(x0, x1, Pos(Succ(x2)), x3)
new_range3(x0, x1, ty_Char)
new_rangeSize6(@2(LT, EQ))
new_rangeSize6(@2(EQ, LT))
new_index58(x0, x1, Succ(x2), Succ(x3))
new_index126(x0, x1)
new_primPlusNat4(Succ(x0), x1)
new_takeWhile112(x0, x1)
new_range16(x0, x1, ty_Char)
new_index128(x0, x1, Succ(x2), Zero)
new_index1213(x0, Zero)
new_sum0(:(x0, x1))
new_range8(x0, x1)
new_index1(x0, x1, ty_Int)
new_primMinusNat5(x0, Succ(x1), x2)
new_dsEm6(x0, x1)
new_index87(x0, x1, Neg(Zero), x2)
new_primPlusInt6(Neg(x0), LT)
new_sum3(:(x0, x1))
new_primPlusInt15(Neg(x0), LT)
new_index810(x0, x1)
new_range17(x0, x1, ty_Char)
new_range16(x0, x1, ty_@0)
new_takeWhile19(x0, x1, Zero, Zero)
new_index87(x0, x1, Pos(Zero), x2)
new_rangeSize21(@2(Pos(Zero), Neg(Succ(x0))))
new_takeWhile7(Pos(Succ(x0)), Pos(Zero))
new_rangeSize21(@2(Neg(Zero), Pos(Succ(x0))))
new_index60(x0, x1)
new_range22(x0, x1, ty_Integer)
new_takeWhile18(x0, x1)
new_range16(x0, x1, app(app(ty_@2, x2), x3))
new_primPlusInt24(x0, Pos(x1), Pos(x2))
new_index58(x0, x1, Zero, Zero)
new_index1210(x0, x1, Zero, Succ(x2))
new_index10(x0, x1)
new_primPlusInt22(x0, Pos(x1), Neg(x2))
new_primPlusInt22(x0, Neg(x1), Pos(x2))
new_foldl'0(x0)
new_range18(x0, x1, ty_Bool)
new_map0([])
new_takeWhile113(x0, x1, x2, Zero, Succ(x3))
new_range2(x0, x1, ty_Bool)
new_index58(x0, x1, Zero, Succ(x2))
new_rangeSize20(x0, x1, app(app(app(ty_@3, x2), x3), x4))
new_foldr5(x0, x1, :(x2, x3), x4, x5, x6)
new_range5(x0, x1, app(app(ty_@2, x2), x3))
new_rangeSize115(x0, x1, x2, x3, x4, x5)
new_index815(x0, x1)
new_primPlusNat4(Zero, x0)
new_range13(x0, x1, app(app(ty_@2, x2), x3))
new_range19(x0, x1, ty_Int)
new_index510(Integer(Neg(Succ(x0))), Integer(Neg(Succ(x1))))
new_foldr9(x0, [], x1, x2)
new_range5(x0, x1, ty_@0)
new_index510(Integer(Neg(Succ(x0))), Integer(Pos(Succ(x1))))
new_rangeSize6(@2(EQ, EQ))
new_rangeSize21(@2(Neg(Succ(x0)), Pos(x1)))
new_rangeSize21(@2(Pos(Succ(x0)), Neg(x1)))
new_range22(x0, x1, ty_Bool)
new_index6(@2(x0, x1), @2(x2, x3), x4, x5)
new_takeWhile9(x0, x1, x2)
new_primMinusInt(Neg(x0), Neg(x1))
new_primPlusInt6(Neg(x0), EQ)
new_primPlusNat5(Succ(x0))
new_index(x0, x1, ty_Char)
new_enforceWHNF6(x0, x1, :(x2, x3))
new_range18(x0, x1, ty_Integer)
new_range1(x0, x1, ty_@0)
new_index13(GT, GT)
new_psPs3
new_range2(x0, x1, ty_Int)
new_rangeSize110(x0, x1, x2, x3, [], x4, x5, x6)
new_range13(x0, x1, ty_Char)
new_rangeSize21(@2(Pos(Zero), Pos(Zero)))
new_rangeSize117(x0, x1, :(x2, x3))
new_index817(x0, x1, Zero, Zero)
new_index821(x0, x1, Neg(Zero), Pos(Zero))
new_index821(x0, x1, Pos(Zero), Neg(Zero))
new_range5(x0, x1, ty_Int)
new_rangeSize20(x0, x1, ty_Char)
new_takeWhile8(Integer(Pos(Succ(x0))), Integer(Pos(Succ(x1))))
new_rangeSize18(:(x0, x1))
new_rangeSize4(@2(@2(x0, x1), @2(x2, x3)), x4, x5)
new_index1214(Neg(Succ(x0)), Pos(Zero))
new_range18(x0, x1, ty_@0)
new_range1(x0, x1, app(app(app(ty_@3, x2), x3), x4))
new_index510(Integer(Pos(Succ(x0))), Integer(Pos(Succ(x1))))
new_dsEm5(x0, x1)

We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:


Haskell To QDPs